Is this a wrong test case?

  • 0

    the test case :

    input : [20,1];



    "210" is not the largest number in this test case,kidding me......

  • 1

    The possible numbers to be formed are 201 and 120. 210 is not a valid number for this input. Therefore, the test case is correct.

  • 0

    thx! I just found my misreading of the topic ,and also found i had done the problem by splitting the number digit by digit ... that seems a harder but not 'correct' one .

Log in to reply

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