Track 03 · Algorithms
3.3 DP & Optimisation
7 topics in 1 parts. Use it as a checklist before an interview, or as a map of what to learn next.
- CCritical
- HHigh
- MMedium
- NNew 2026
01Algorithm Patterns7 topics
- Dynamic Programming: optimal substructure + overlapping subproblemsH
- DP patterns: 1D (Fibonacci, House Robber), 2D (LCS, Edit Distance)H
- Interval DP, tree DP, knapsack variantsH
- Backtracking: choose → explore → unchoose; subsets, perms, combosH
- Greedy: activity selection, interval scheduling, HuffmanH
- Divide and conquer: merge sort, quick sort, master theoremM
- Segment trees: range sum/min/max queries O(log n)M
Practise it
Knowing it is half.
Saying it is the rest.
Run a realistic voice interview with an AI panel in the Interview Room, then read a scored report on every answer.