Why my answer is wrong?


  • 0
    D

    Input:
    [-3,-2,-1,0,0,1,2,3]
    0
    Output:
    [[-3,-2,2,3],[-3,-1,1,3],[-3,0,1,2],[-3,0,0,3],[-2,-1,1,2],[-2,-1,0,3],[-2,0,0,2],[-2,0,-1,3],[-1,0,0,1]]
    Expected:
    [[-3,-2,2,3],[-3,-1,1,3],[-3,0,0,3],[-3,0,1,2],[-2,-1,0,3],[-2,-1,1,2],[-2,0,0,2],[-1,0,0,1]]

    I think [-2,-1,0,3] and [-2,0,-1,3] is the same....

    Am i wrong?


Log in to reply
 

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