Showing Posts From

Permutations

Backtracking: Permutations, Combinations & Pruning

Backtracking: Permutations, Combinations & Pruning

Week 25 notes: turning the Week 17 template into a toolkit. The three shapes (subsets, combinations, permutations), handling duplicates without dupes, and the pruning that keeps it feasible.