Mental Model
Greedy means picking the best choice right now without looking ahead. It works when local best choices lead to the global best result.
Analogy: Making change for 6 cents with coins [1,3,4]. Greedy picks largest <= remaining: 4 (rem 2), 1 (rem 1), 1 (total 3 coins). But 3+3=2 coins better, so fails. With [1,5,10,25] for 30, greedy 25+5=2 coins, optimal.
Coins [1,3,4], target=6 Greedy: pick 4 -> rem=2 -> pick 1 -> rem=1 -> pick 1 (3 coins) Better: pick 3 -> rem=3 -> pick 3 (2 coins)
