2.Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Climbing stairs follows Fibonacci series approach.
Count ways to N'th Stair(Order does not matter)
Order does not matter means for n=4 {1 2 1},{2 1 1},{1 1 2} are considered same.
Solution:
Approach Count increases when number are even
Last updated