Knapsack / Subset Sum pattern
Rows can represent considered items and columns can represent capacity or sum. The current cell combines those two choices.
Difficulty: Medium · Approach: Save each smaller answer once
This is a public lesson preview. Sign in with a Lifetime Pass to open the protected animation, solution, and code.