Tip 1 : Always be consistent in preparation.
Tip 2 : Focus on understanding and learning rather than the number of questions
Tip 1 : Mention some good projects and explain them.
Tip 2 : Keep it clean and concise.
There were 2 data structure questions to be done in 70 minutes and 20 minutes for workstyle assessments.





• Fill any of the jugs entirely with water.
• Empty any of the jugs.
• Pour water from one jug into another till the other jug is full, or the first jug itself is empty.
In order to measure 2 litres from jugs of 4 and 6 litres we can follow the following steps-
• Fill 6-litres jugs to its maximum capacity.
• Pour water from 6-litres jug to the jug with 4-litres capacity.
• Pour water from 6-litres jug to the jug with 4-litres capacity.
It was a face-to-face interview and the Interviewer asked 2 Easy-medium DSA problems.



I solved this problem by using Floyd Cycle Detection Algorithm.



Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
I solved this problem in a single traversal by defining ranges to 0,1 and 2.
It was again DSA round, In which they asked me 2 DSA problems.



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.
The interviewer asked me for 2 approaches to this problem, first I solved using prefix array, and the second with the stack.



a. First row(left to right)
b. Last column(top to bottom)
c. Last row(right to left)
d. First column(bottom to top)

It was a behavioral + DSA round.
Mention a time when you over-delivered than someone's expectations.
Mention a time when you gave a solution that is out of the box.
Tip 1 : Always answer in the STAR method.
Tip 2 : Never hesitate in answering.
Tip 3 : If anything doesn't relate to you, simply tell the interviewer.



Serialization is the process of translating a data structure or object state into a format that can be stored or transmitted (for example, across a computer network) and reconstructed later. The opposite operation, that is, extracting a data structure from stored information, is deserialization.

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?