Take or skip?
Warm-up · Multiple choice · about 3 min
Item C weighs 4 and is worth 30. The row above C holds 35 at capacity 4 and 0 at capacity 0; what does C's row hold at capacity 4?
Learn the idea first: 0/1 and unbounded knapsack, a visual lesson.
More 0/1 and unbounded knapsack problems
- Fill the knapsack table Warm-up
- 0/1 knapsack Standard
- Partition equal subset sum Standard
- Unbounded knapsack Standard
- Spot the bug: one-row 0/1 knapsack Standard
- Target sum Challenge