Independence Day Sale! Unlock 40% OFF on All Job-Oriented Training Programs – Limited Time Only! Offer Ending in
D
H
M
S
Get Now
Problem Submissions Solution

Ways to Reaching the n'th Stair

Difficulty: Medium

Acceptance: %

Points: 30.00

There are n stairs, a person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs at a time. Your task is to count the number of ways, the person can reach the top (order does matter).

Topics

Companies

Articles

Examples:

NA

Constraints:
  • 1 = n = 44
Companies:
Amazon Microsoft Adobe Flipkart
Topics:
Dynamic Programming
Locked Content
Access Restricted: Please Login to access the code editor and test cases.