Tip 1 : Do at least two projects
Tip 2 : Be regular in giving competitive programming contests
Tip 3 : Be your resume
Tip 1 : Be your resume
Tip 2 : Have some achievements in competitive programming and at least 2 projects
It was in the evening
The environment was good enough



Swap 1: We swap adjacent elements 90 and 21. So, ARR after one swap is [70, 60, 21, 90, 11].
Swap 2: We swap adjacent elements 60 and 21. So, ARR after one swap is [70, 21, 60, 90, 11].
Swap 3: We swap adjacent elements 70 and 21. So, ARR after one swap is [21, 70, 60, 90, 11].
The lexicographically smallest ARR after K = 3 swaps is [21, 70, 60, 90, 11].
The key point is to observe the answer. If we have B swaps, what does the starting of the permutation look like?
The permutation starts with N for sure and continues with (n-1), (n-2), …, (n-B+1).
Use greedy approach to make the largest lexicographical value array.
The Inorder Successor of a node in a binary tree is the next node in Inorder traversal of the Binary Tree. It is supposed to be NULL for the last node in Inorder traversal, for which suppose it to be ‘-1’.
For the given binary tree:

The inorder traversal of the tree will be: 4 -> 2 -> 5 -> 1 -> 6 -> 3 -> 7
Hence, the inorder successor of each node will be: 4 -> 2 2 -> 5 5 -> 1 1 -> 6 6 -> 3 3 -> 7 7 -> -1
It was in afternoon
The interviewer was very good and tried to make me as comfortable as he could
There are 25 horses, and 5 race tracks, find minimum number of races required to find the top 3 fastest horses.
Tip 1 : Solve more puzzles
Tip 2 : Use pen and paper and put variable names efficiently



1. Left - (i, j-1)
2. Right - (i, j+1)
3. Up - (i-1, j)
4. Down - (i+1, j)

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