Guided lesson

Coin Change

Dynamic Programming

See the input

Intermediate

Input for Coin Change: Build answers for smaller amounts, then extend them with each coin.

0
1
2
3
4
2
3
4
5
6
4
5
6
7
8
6
7
8
9
10
Step 1 O(amount * coins) time - O(amount) 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