Tip 1 : Go through Striver’s Sheet
Tip 2 : Go through some interview articles
Tip 3 : Study little bit about LLD also
Tip 1 : First of all it should be short and to the point
Tip 2 : Your resume always represents the sense of ownership through your projects
Timing : 11:00 am
How was the environment : light and chill
How the interviewer was : polite



If the matrix is
0 2 4 1
4 8 3 7
2 3 6 2
9 7 8 3
1 5 9 4
Then answer is 47. As, Alice will collect coins 0+8+3+9+1 = 21 coins. Bob will collect coins 1+7+6+8+4 = 26 coins. Total coins is 21+26 = 47 coins.
first, sort the array and start taking elements from front and back



If two words have the same frequency then the lexicographically smallest word should come first in your answer.
Can you solve it in O(N * logK) time and O(N) extra space?
first, create a max-heap then put the elements in that heap and pop out the first k elements



You are given ‘MAT’= [[1, 2],[3, 4]] and ‘K’ = 8.

Then the answer will be 7 (the sum of the red rectangle).
you can see the discuss section in leetcode



1. There is at least one cell having the integer 0 in the given matrix.
Consider the following 2*3 matrix ‘MAT’:
[0, 1, 1]
[0, 1, 1]
Here, the nearest cell having the integer 0 from the cell (0, 0) is the cell (0, 0) itself. The Manhattan distance between them is |0 - 0| + |0 - 0| = 0.
The nearest cell having the integer 0 from the cell (0, 1) is cell (0, 0). The Manhattan distance between them is |0 - 0| + |1 - 0| = 1.
The nearest cell having the integer 0 from the cell (0, 2) is cell (0, 0). The Manhattan distance between them is |0 - 0| + |2 - 0| = 2.
The nearest cell having the integer 0 from the cell (1, 0) is cell (1, 0) itself. The Manhattan distance between them is |1 - 1| + |0 - 0| = 0.
The nearest cell having the integer 0 from the cell (1, 1) is cell (1, 0). The Manhattan distance between them is |1 - 1| + |1 - 0| = 1.
The nearest cell having the integer 0 from the cell (1, 2) is cell (1, 0). The Manhattan distance between them is |1 - 1| + |2 - 0| = 2.
Thus we should return matrix:
[0, 1, 2]
[0, 1, 2]
you can see the discuss section in leetcode
This round is actually Hiring Manager round so it is basically related to my resume , some LLD questions and some leadership principle question
1. Why Dunzo?
2. Where do you see yourself after 5 years?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?