in reply to Re: LeetCode Problem #1 - Two Sum - Improve and/or discuss.in thread LeetCode Problem #1 - Two Sum - Improve and/or discuss.
This is O(N) instead of O(N^2), so it will scale better.