Stair Climbing Problem #3333
Closed
Py-Cipherer
started this conversation in
General
Replies: 1 comment
-
For help with solving Codewars challenges, please ask questions in kata discourse section, or visit the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You are climbing a staircase. It takes n steps to reach the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Example 1:
Input: n = 2
Output: 2
Explanation: There are two ways to climb to the top.
Example 2:
Input: n = 3
Output: 3
Explanation: There are three ways to climb to the top.
Constraints:
1 <= n <= 45
Beta Was this translation helpful? Give feedback.
All reactions