Hey why is
[-1, 1, 2, 2]
a false case?
Does it mean the loop has to go only one direction and never back then forward again?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.