Core Concepts

The greedy paradigm works when a problem has the greedy-choice property and optimal substructure. Common interview patterns include:

Cheatsheet Formulas