Math Fundamentals18 sections · 814 units
Open in Course

Lessons from Letter Combinations

(Product rule in practice)

1.1. The product rule tells you the size of the output before you generate it.

2.2. Backtracking generates all combinations by making independent choices at each step.

3.3. Exponential growth (like 4n4^n) means the problem becomes infeasible for large inputs.

You now have the complete toolkit for counting: sum rule, product rule, DP recurrences, and backtracking generation.