Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

it says Given a list of non negative integers, arrange them such that they form the largest number.

then why when input is 2048 and i return "8420" is the wrong answer... can someone explain this to me...

you cannot arrange the individual numbers. you can only change the order of given numbers but not their digits.

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.