Erroneous Test Case?


  • 0
    N

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

    Isn't the output missing [-4,-1,1,4] ? or did I understand something wrong?

    Thanks!


  • 0
    K

    When I run C# version, expected answer is this and [-4,-1,1,4] exists
    [[-4,-3,3,4],[-4,-2,2,4],[-4,-1,1,4],[-4,-1,2,3],[-4,0,0,4],[-4,0,1,3],[-3,-2,1,4],[-3,-2,2,3],[-3,-1,0,4],[-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]]


Log in to reply
 

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