Tip 1 : Practice good number of questions.
Tip 2 : Do at least 2 projects.
Tip 1 : Have some good projects in your resume.
Tip 2 : Do not put false things on resume.
3 sections were there (Verbal Ability (15), Advanced Quantitative Aptitude (15), Coding (2))
A thief trying to escape from a jail. He has to cross N walls each with varying heights (every height is greater than 0). He climbs X feet every time. But, due to the slippery nature of those walls, every time he slips back by Y feet. Now the task is to calculate the total number of jumps required to cross all walls and escape from the jail.
I Iterated over the whole array and count the number of jumps required to cross that wall without using loop.



a) Pick the first character from the source string.
b) Append the picked character to the destination string.
c) Count the number of subsequent occurrences of the picked character and append the count to the destination string.
d) Pick the next character and repeat steps b) c) and d) if the end of the string is NOT reached.
I was asked questions based upon OOPS and JAVA related questions after that they gave me a coding problem then they asked me about my projects that i mentioned in my resume in detail.



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 in the above problem. The person can reach nth stair from either (n-1)th stair or from(n-2)th stair. Hence, for each stair n, we try to find out the number of ways to reach n-1th stair and n-2th stair and add them to give the answer for 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
To make an AI less repetitive in a long paragraph, you should increase: