I dont get this question...


  • 0
    J

    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...


  • 3
    M

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


Log in to reply
 

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