Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let n = gets().split(',' + ' ').map(Number);
- let sorted = n.reverse().sort((a, b) => b - a);
- console.log(sorted);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement