can we use vector::erase in this problem?


  • 0
    B

    if we find the same element, we erase this element. I try to implement it, but it seems can't work?


Log in to reply
 

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