Tip 1 : Go through standard problems
Tip 2 : You should know about everything you have written on your resume
Tip 1 : Keep it short not more than 1 page.
Tip 2 : Write more about figures and technicality on your resume.
It was in the morning, where there were 3 questions to answer.



A cell in 2D matrix can be connected to 8 neighbours. So, unlike standard DFS(), where we recursively call for all adjacent vertices, here we can recursively call for 8 neighbours only. We keep track of the visited 1s so that they are not visited again.



If the given array is [4, 2, 9] then you should print "3 5 6 7 8". As all these elements lie in the range but not present in the array.
The length of the array is n-1. So the sum of all n elements, i.e sum of numbers from 1 to n can be calculated using the formula n*(n+1)/2. Now find the sum of all the elements in the array and subtract it from the sum of first n natural numbers, it will be the value of the missing element.


The idea is to use level order traversal. During traversal, if we find a node whose left and right children are NULL, we increment count.
It was a system design round.
System Design of OLA App
Tip 1 : Talk About the Challenges
Tip 2 : How Dispatch System Works?
Tip 3 : Supply Service And How it Works?
Tip 4 : Demand Service And How it Works?
Tip 5 : How Dispatch System Match the Riders to Drivers?
Tip 6 : How To Scale Dispatch System?
Tip 7 : How Uber Builds the Map?
Tip 8 : How ETAs Are Calculated?
It was a DS Algo round.



Consider lines at an angle of 135 degrees(with respect to standard X- axis) in between nodes. Then, all nodes between two consecutive lines belong to the same diagonal

The diagonal traversal for the above tree is:
0 2 6 1 5 3 4 7
The idea is to use a map. We use different slope distances and use them as key in the map. Value in the map is a vector (or dynamic array) of nodes. We traverse the tree to store values in the map. Once map is built, we print the contents of it.




Can you solve the problem in O(N) time?
The idea is to first sort the range by left boundary and then traversing ranges from left and in each iteration select the rightmost boundary a sprinkler can cover having the left boundary in the current range
HR Round
Why do you want to join this company?
Where do you see yourself in coming years?
Tip 1 : Always say what the HR wants to listen.
Tip 2 : Make them believe that you'll be completely committed towards their organisation
Tip 3 : Never mention if you are planning for higher studies

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