Topic 12 / 16
Greedy
HardOptimization~4 days
Challenging
progress0 / 10 solved
Make the locally optimal choice at each step. Prove it leads to a global optimum.
โ ๏ธ
Why this topic is hard
Greedy is hard because it looks deceptively simple โ just make the locally best choice. The real challenge is PROVING the greedy choice is safe. Many problems look greedy but actually need DP. The test: if making a greedy choice at step i could ever force you into a worse outcome at step j, greedy fails and you need DP.
Prerequisites
Unlocks
Progress is saved on this device