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 cdad365

Browse files
Add 문자열-내림차순으로-배치하기.js
1 parent 81ef077 commit cdad365

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎level-1/문자열-내림차순으로-배치하기.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ function solution(s) {
2121
function solution(s) {
2222
return s.split("").sort((a, b) => (a < b ? 1 : -1)).join("");
2323
}
24+
25+
//정답4 - prove-ability
26+
function solution(s) {
27+
return s.split("").sort().reverse().join("")
28+
}

0 commit comments

Comments
(0)

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