without provided hashmap， anyway to solve it?
A simple approach is that you can make a copy of the numbers, sort it and use binary search to check the existence of a number.
I tried both. And I found that sort and binary search is somehow faster.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.