The for example part is not that precise


  • 0
    X

    For example,
    Given input array A = [1,1,2],

    Your function should return length = 2, and A is now [1,2].

    should be the first length element is now [1,2], the rest element is ignored...


  • 0
    B

    Agree. Otherwise it makes no sense.


Log in to reply
 

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