Practice40 min

Practice: Grids & Two Strings

Path counting, the classic LCS table, state-machine stock DP, and combination-counting knapsack.

Unique Paths and LCS are the two canonical table shapes; the stock problem adds a small state machine (holding, sold, cooling) on top of the day axis; Coin Change II is the coins-outer-loop combinations count.

Solving all problems completes this lesson automatically.