How to solve the follow up?

  • 1

    What if negative numbers are allowed in the given array?
    How does it change the problem?
    What limitation we need to add to the question to allow negative numbers?
    I think the limitation is there could not be numbers pair like -1 and 1.
    Who can give the answers to these 3 question? Thanks!

Log in to reply

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