일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 프로그래밍언어
- 자바스크립트
- 자바
- 재테크
- 책을알려주는남자
- 독후감
- C
- 투자
- 알고리즘공부
- 성분
- Java
- 독서
- algorithmtraining
- C++
- algorithmStudy
- 지혜를가진흑곰
- algorithmTest
- 화장품
- 백준알고리즘
- 프로그래머스 알고리즘 공부
- 주식
- JavaScript
- 서평
- 돈
- 경제
- 알고리즘트레이닝
- 채권
- 다독
- 알고리즘 공부
- 책알남
Archives
- Today
- Total
반응형
목록프로그래머스 js 테이블 해시 함수 문제 해결 (1)
탁월함은 어떻게 나오는가?

문제 설명 제한 사항 입출력 예 입출력 예 설명 문제 풀이 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 function solution(data, col, row_begin, row_end) { let answer = 0; data.sort((a, b) => { const desc = a[col - 1] - b[col - 1]; if (a[col - 1] === b[col - 1]) { const asc = b[0] - a[0]; return asc; } return desc; }); for (let i = row_begin; i accumulator + (currentValue % i), 0 ); return answer; } Colored by Color..
[Snow-ball]프로그래밍(컴퓨터)/Algorithm Training
2023. 10. 12. 20:57
반응형