Climbing Stairs
Try to solve the Climbing Stairs problem.
We'll cover the following
Statement
You are climbing a staircase. It takes n
steps to reach the top. Each time, you can either climb or steps. In how many distinct ways can you climb to the top?
Constraints:
-
n
Examples
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy