Skip to content

Instantly share code, notes, and snippets.

@yungyungGwon
Last active August 21, 2020 08:33
Show Gist options
  • Save yungyungGwon/ac5d06f4597882d88ef1c8c557de16ae to your computer and use it in GitHub Desktop.
Save yungyungGwon/ac5d06f4597882d88ef1c8c557de16ae to your computer and use it in GitHub Desktop.
Algorithm
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