Why did they say "length of the input array is in range [1, 10,000]." in the question note? The solutions doesn't seem to care about the array size limit. I mean the solutions seems to work for input array of size, say 10,500.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.