Tip 1 : Practice daily question of DS algo
Tip 2 : Prepare all your projects
Tip 3 : Daily practice of aptitude
Tip 4 : Practice previous years Company questions
Tip 1 : Resume should contains only those skills that you know
Tip 2 : Add good projects in your resume
Tip 3 : Resume should not be too long
3 Questions were asked in the test medium level.






Note: Since the number of ways can be very large, return the answer modulo 1000000007.
N=3

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
The first method uses the technique of recursion to solve this problem.
Approach: We can easily find the recursive nature of the above problem. The person can reach the nth stair from either (n-1)th stair or (n-2)the stair. Hence, for each stair n, we try to find out the number of ways to reach the n-1th stair and n-2th stair and add them to answer the nth stair. Therefore the expression for such an approach comes out to be :
ways(n) = ways(n-1) + ways(n-2).




Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?