LeetCodeEasy
Two Sum
You need two numbers in an array that add to a target. While scanning the array, what do you store, and what do you check before storing the current number?
Open the problem statement (opens in a new tab)LAUNCH SALE 50% off every pass
Reconstruct the reasoning, check why it works, then apply the idea to a different problem.
Hashing · Sample card
LeetCodeEasy
You need two numbers in an array that add to a target. While scanning the array, what do you store, and what do you check before storing the current number?
Open the problem statement (opens in a new tab)