you just pass the test cases.
try the case [2147483647,-2147483648], -1
I knew the problem. Yes, What I intend to do is just pass the cases. Using array as hashtable is impractical whenever in any real occasion. I should close this thread.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.