Mental Model
We want to find two numbers that add up to a target by remembering numbers we've seen before.
Analogy: Imagine shopping with a list and a basket. You check each item and remember what you need to reach your total. If the needed item is already in your basket, you found the pair.
nums: [2] [7] [11] [15]
indices: 0 1 2 3
hash_map: {}
ā current index at 0