Got the confused Wrong Answer


  • 0
    G

    I got the Wrong Answer as follow:

    • Input: 1,[set(2,1),get(2),set(3,2),get(2),get(3)]
    • Output: [1,1,2]
    • Expected: [1,-1,2]

    Why the answer is not [1,1,2]?


Log in to reply
 

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