Tip 1 : Do a minimum of 3 problems everyday. Discipline is important.
Tip 2 : Give mock interviews while explaining your approach.
Tip 3 : Understand and learn different approaches to a problem and dissect them.
Tip 1 : Prepare on everything that you have put on your resume.
Tip 2 : Make a one-pager resume. This shows that you can be concise and brief in your demonstration.
This round involved majorly on MCQ questions ranging from all topics that are taught in Computer Science. MCQ involved short coding, time and space complexities, corrections and other DSA topics.
round robin mcq
Tip 1 : understand the problem
Tip 2 : calculate thoroughly and check before answering
The round was a video call on webex. The interview greeted and asked me to introduce myself. After that we jumped straight into coding.



1. Coordinates of the cells are given in 0-based indexing.
2. You can move in 4 directions (Up, Down, Left, Right) from a cell.
3. The length of the path is the number of 1s lying in the path.
4. The source cell is always filled with 1.
1 0 1
1 1 1
1 1 1
For the given binary matrix and source cell(0,0) and destination cell(0,2). Few valid paths consisting of only 1s are
X 0 X X 0 X
X X X X 1 X
1 1 1 X X X
The length of the shortest path is 5.
I had to mark the rocks and 1 and free paths as 0.
After that, it was a simple BFS algorithm application which would give the result.


The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
I created two array name ( maxleft, maxright ) which will store the maximum left and maximum right for each height. We will use these array to calculate the stored water in each height.
stored water = min(maxleft,maxright) - height. This is the formula to calculate the stored water.
The HR greeted herself and then proceeded asking me multiple behavioral questions and preferences.
If there was a problem in my team, how would I solve it?
Tip 1 : Prepare for these questions well in advances
Tip 2 : Follow STAR model while answering
Tip 3 : Be very clear and crisp while answering them

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