Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 37bb653

Browse files
solve: 특이한 정렬
1 parent 8ea5f1c commit 37bb653

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎Level0/PRO120880.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Solution 1
2+
function solution(numList, n) {
3+
return numList.slice().sort((a, b) => Math.abs(a - n) - Math.abs(b - n) || b - a);
4+
}

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,9 @@
314314
| 23.12.27. | `Level 0` | [컨트롤 제트](https://school.programmers.co.kr/learn/courses/30/lessons/120853) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO120853.js) |
315315
| 23.12.30. | `Level 0` | [문자열 여러 번 뒤집기](https://school.programmers.co.kr/learn/courses/30/lessons/181913) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181913.js) |
316316
| 23.12.31. | `Level 0` | [배열 만들기 2](https://school.programmers.co.kr/learn/courses/30/lessons/181921) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181921.js) |
317+
318+
### 2024년 01월
319+
320+
| 날짜 | 난이도 | 문제 | JS 풀이 |
321+
| :-------: | :-------: | :-----------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
322+
| 24.01.01. | `Level 0` | [특이한 정렬](https://school.programmers.co.kr/learn/courses/30/lessons/120880) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO120880.js) |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /