Climbing Stairs
Try to solve the Climbing Stairs problem.
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
Try to solve the Climbing Stairs problem.
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