Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Climbing Stairs
Bookmark
Input
n = 2
n = 3
n = 5
n = 8
n = 10
Custom
n
=
5
0
1
2
3
4
5
?
?
?
?
?
?
dp[i] = dp[i-1] + dp[i-2]
algo
master
.
io
Step:
Start: count the distinct ways to climb 5 stairs
0 / 11
Input
n = 2
n = 3
n = 5
n = 8
n = 10
Custom
n
=
5
0 / 11
0
1
2
3
4
5
?
?
?
?
?
?
dp[i] = dp[i-1] + dp[i-2]
algo
master
.
io
Step:
Start: count the distinct ways to climb 5 stairs