Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Min Cost Climbing Stairs
Bookmark
Input
Example 1
Example 2
Zeros
Increasing
Two steps
Custom
cost
=
[10, 15, 20]
cost:
0
10
1
15
2
20
dp:
0
?
1
?
2
?
3
?
algo
master
.
io
Step:
Start: Find minimum cost to reach top of 3 stairs
0 / 9
Input
Example 1
Example 2
Zeros
Increasing
Two steps
Custom
cost
=
[10, 15, 20]
0 / 9
cost:
0
10
1
15
2
20
dp:
0
?
1
?
2
?
3
?
algo
master
.
io
Step:
Start: Find minimum cost to reach top of 3 stairs