Two Sum: the slow way versus the smart way in one minute
Slow way: check every pair, which grows with n squared. Smart way: walk the list once, keeping a hash map of numbers seen. For each number, check whether target minus number is already in the map. One pass, linear time. Trading memory for speed shows up in many problems. Learn the pattern, not just the answer.