Arrays & Hashing is a repeated product-company interview pattern because it tests whether you can turn a brute-force idea into a predictable invariant.
Open on LeetCodeGiven an integer array and a target, return the two indices whose values add up to the target.
nums = [2, 7, 11, 15], target = 9 -> [0, 1]
nums = [3, 2, 4], target = 6 -> [1, 2]
Try framing your own approach first. The 30 seconds you think before peeking is where learning happens.
Reveal the approach first.
Your rating tunes when this problem shows up again.