Last active
August 21, 2020 08:33
-
-
Save yungyungGwon/ac5d06f4597882d88ef1c8c557de16ae to your computer and use it in GitHub Desktop.
Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function solution(n){ | |
var answer = 0; | |
answer = parseInt(String(n).split('').sort().reverse().join('')); | |
return answer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment