Wondering Why They Change the Order


  • 0
    V

    Your input

    [1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,5]
    2

    Your answer
    [1,3,4,5]

    Expected answer
    [1,5,4,3]

    I don't see any reason that Expected answer changes the order of input.


Log in to reply
 

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