Core Patterns
Backtracking
Generate every subset, permutation or placement by making one choice at a time, exploring it, and undoing it. Prune dead branches early to keep exponential searches fast enough.
0 of 3 lessons complete, 0 of 7 problems solved
Coursework
37 min
Up next
Thinking in Decision Trees
See every 'generate all ...' problem as a walk through a tree of choices.
10 min
Choose, Explore, Un-choose
One template covers subsets, combinations and permutations.
13 min
Pruning, Duplicates and Grids
Cut dead branches early, skip duplicate answers, and search grids safely.
14 min
Practice ladder
Start with the first problem, then work toward the harder variations. Run examples before submitting against all tests.
Next unit: Graphs