hashing
3 min
D2
Pair Seeker
Find two values that sum to the target. Learn why a hash map wins.
Two Sum trainer
0 pairs
Find the complement
For each pick x, ask: is target−x already seen? That’s the hash-map interview answer.
Find two values that sum to the target. Learn why a hash map wins.
Find the complement
For each pick x, ask: is target−x already seen? That’s the hash-map interview answer.