JS test cases wrong?


  • 0

    Input: [1, 1]
    Expected: [1]

    Isn't this wrong?

    It says It doesn't matter what you leave beyond the new length.


Log in to reply
 

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