Series of problems related to "Two Sum"
This question is kind of the classic problem in LeetCode. Though it seems like a pretty easy question, through its extension, we could learn a lot.
Related problems (follow the order to solve each problem):
0001. Two Sumarrow-up-right Hash Table
Hash Table
0167. Two Sum II - Input array is sortedarrow-up-right Two Pointer
Two Pointer
0170. Two Sum III - Data structure designarrow-up-right Binary Search
Binary Search
0653. Two Sum IV - Input is a BSTarrow-up-right Binary Search Tree + Stack
Binary Search Tree + Stack
Last updated 4 years ago