Given a non-negative integer, return the largest number that can be formed by rearranging its digits. Example: 318 gives 831.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
You are given a function that can add only two single digits. Using it, write a function that adds two non-negative integers supplied as strings and returns the sum as a string.Each element of an array of non-negative integers may be lowered to any smaller non-negative value. What is the largest MEX the array can reach?Related courses

Course
