Tip 1: Understand the question properly, gather requirements, and then answer.
Tip 2: Don't start coding as soon as you see the question. First, think of the approach, discuss it with the interviewer, and then code.
Tip 3: Don't use buzzwords if you don't know about the topic.
Tip 1: Make it specific to the role that you are applying for.
Tip 2: Highlight the skills and projects that you've completed.



A prisoner is planning to escape from prison. The prison’s gate consists of horizontal and vertical bars that are spaced one unit apart, so the area of each hole between the bars is 1x1. The prisoner manages to remove certain bars to make some bigger holes. Determine the area of the largest hole in the gate after the bars are removed.
Example
N = 6 (the number of horizontal bars initially)
M = 6 (the number of vertical bars initially)
H = [4] (an array of integers, the horizontal bars to remove)
V = [2] (an array of integers, the vertical bars to remove)
The first image depicts the initial prison gate with n = 6 horizontal and m = 6 vertical bars. The area of the biggest hole in the bars is 1x1. The second image depicts the same gate after the prisoner removes horizontal bar 4 and vertical bar 2, at which point the area of the biggest hole in the bars becomes 2x2 = 4
Sample input 1:
N = 3
M = 3
H = [2]
V = [2]
Output: 4
Sample input 2:
N = 2
M = 2
H = [1]
V = [2]
Output: 4
Sample input 3:
N = 3
M = 2
H = [1,2,3]
V = [1,2]
Output:?
Given the input, return the area of the biggest hole in the prison gate’s bars.
Step 1: I was able to come up with a Brute force approach (O(n*n)) but the interviewer wanted an optimal approach
Step 2: I asked for a hint where the interviewer broke down the given sample input to get the output, which helped me to understand the logic behind this problem
Step 3: I found the maximum horizontal and vertical consecutive lengths and then returned the multiplier of these after adding 1 to each maximum value.
Low-level design of a parking lot system.
Tip 1: Ask for the requirements
Tip 2: Ask for what is expected out of your solution in this one-hour
Tip 3: Ask the interviewer if he wants just the class diagram or if he wants you to give a runnable code.
This was an HM round, where along with the behavioural skills, I was asked HLD of MMT.
Tip 1: Gather the requirements
Tip 2: Drive the interview, don't use any buzzwords if you don't have enough knowledge about them.
Tip 3: Read Alex Xu, this will help you with how to answer a design problem.

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