Tip 1: Solve the SDE sheets, as most problems come from the sheet itself.
Tip 2: Try to solve the first of the two questions as quickly as possible, as the time limit is one hour.
Tip 3: Make sure you have projects and internships listed on your resume so that they can ask questions based on it.
Tip 1: Have some projects on your resume.
Tip 2: It helps if you have had some small internship experience in the past.
Part 1: 7 Bug Fixes
Part 2: 2 DSA Medium-Hard Questions
Part 3: Behavioral Questions (MCQ)



1. You can not slant the container i.e. the height of the water is equal to the minimum height of the two lines which define the container.
2. Do not print anything, you just need to return the area of the container with maximum water.

For the above Diagram, the first red marked line is formed between coordinates (2,0) and (2,10), and the second red-marked line is formed between coordinates (5,0) and (5,9). The area of water contained between these two lines is (height* width) = (5-2)* 9 = 27, which is the maximum area contained between any two lines present on the plane. So in this case, we will return 3* 9=27.
DP concepts



Consider a country having 4 states numbered from 1 to 4. These 4 states are connected by 5 bidirectional roads given as :
1 --- 2 with cost = 8
2 --- 3 with cost = 6
3 --- 4 with cost = 5
1 --- 4 with cost = 2
1 --- 3 with cost = 4
The map of the country can be represented as:

Now, the best way to choose 3 roads is:

The cost of travelling from any state to all other states is 2 + 4 + 6 i.e. 12.
The approach is very simple: just travel by the bus with the lowest cost so far. Whenever a bus with an even lower cost is found, change the bus from that city. The following are the steps to solve:
Face-to-face DSA online round was conducted on Google's platform.



Simple array implementation.



I solved using Stack.
Face-to-face DSA round, where I was asked 2 coding questions.



Each pair should be sorted i.e the first value should be less than or equals to the second value.
Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.



1. If 'X' is not found in the array, return 0.
2. The given array is sorted in non-decreasing order.

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?