Guided lesson

0/1 Knapsack

Dynamic Programming

See the input

Intermediate

Input for 0/1 Knapsack: For each item and capacity, choose between skipping or taking the item.

0
1
2
3
4
2
3
4
5
6
4
5
6
7
8
6
7
8
9
10
Step 1 O(nW) time - O(nW) or O(W) space
Guided progression
6% lesson
Step 1 / 2Learner goal
Speech settings Speed 1.0 · Volume 90%

Keyboard: Space play/pause · Arrow keys step · Page Up/Down change sections · R restart