Tip 1 : Practice DSA questions, not only once, but at least twice.
Tip 2 : Also take care of theory subjects because they are asked a lot in interviews.
Tip 3 : Do competitive coding contest at least once in a week.
Tip 1 : Never write something which you aren't well aware of.
Tip 2 : Try building resume on Latex
There were 3 coding questions. The questions were different for different students.
Question 1 : Easy
Question 2 : Medium
Question 3: Medium
If one was able to solve 2 question, he/she was shortlisted for interview
17 candidates were shortlisted for the interview.
There were 2 coding questions asked of easy level. I had to explain my approach and write the code in google doc.



1. Roots of both the given trees are same.
2. Left subtree of the root of the first tree is the mirror of the right subtree of the root of the second tree.
3. Right subtree of the root of the first tree is the mirror of the left subtree of the root of the second tree.
For example,both the given trees are mirror image of each other:




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 round was held in evening. There were 4 questions asked and the interviewer was more interested in the running code with several test cases rather than my explaination.



A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...


Let input array is [1,3,2,7] so basically, this array represents the number 1327, the output will be [1,3,2,8].
The input may have 0 at the starting of the array, e.g., [0,3,5,7] is a valid input, but the output can not have 0 before the most significant digit. So [0,3,5,8] will be a wrong answer, and the correct answer will be [3,5,8].






This game is played between two people (Player 1 and Player 2). Player 1 chooses ‘X' and Player 2 chooses ‘O’ to mark their cells. A move is guaranteed to be valid and is placed on an empty block.
A player who successfully places 'N' of their marks in a horizontal, vertical, or diagonal row wins the game. Once a winning condition is reached, no more moves are allowed.
0: No one wins.
1: Player 1 wins.
2: Player 2 wins.
Let us assume if ‘N’ = 3 and player 1 places ‘X’ and player 2 places ‘O’ on the board.


Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?