Fractional knapsack
Fractional knapsack: value-density greedy strategy and why it differs from 0-1 knapsack
Zürich night over Limmat
Fractional knapsack: value-density greedy strategy and why it differs from 0-1 knapsack
DP vs greedy through activity selection: optimal substructure, greedy choice, pseudocode
DP practice set: Fibonacci, max-subarray, 0-1 knapsack, and LCS intuition
Rod-cutting as DP: brute force vs memoization vs bottom-up, plus solution reconstruction
AVL trees: balance invariants, rotations, and why height stays O(log n)