Backtracking and dynamic programming
Enumerate with backtracking and optimise with DP.
- DSA.12.01Pattern 17: BacktrackingCoreMid-levelBeing written
- DSA.12.02Pattern 18a: Dynamic programming — 1DCoreMid-levelBeing written
- DSA.12.03Pattern 18b: Dynamic programming — 2D and knapsackSeniorBeing written
Interview questions in this module
- How do you recognise a DP problem?
- Top-down vs bottom-up DP: trade-offs?
- Generate all subsets of a set. What is the complexity?
- Solve coin change. Explain the state and transition.
- What is the difference between backtracking and DP?