Tip 1 : Prepare DSA for atleast 5-6 months on a regular basis before internship/placement opportunity.
Tip 2 : CS Fundamentals are very important (OOPs, OS, DBMS, System Design)
Tip 3 : Having prior internship experience is a plus point but not necessary.
Tip 1 : 2-3 Projects (preferably on different domains).
Tip 2 : Any kind of achievements mentioned will be a part of discussion in interview (either Academic achievement or any contest rank or anything else).
Tip 3 : DO NOT PUT ANYTHING THAT YOU DON'T KNOW!!!
Timing: Evening
Environment: Pretty chill environment
Focus: This interview round was majorly focused on resume discussion and Algorithms.
In this interview I was asked questions related to Machine Learning as it was mentioned in my interview. They also I asked question regarding of my prior projects (that were mentioned in my resume). Then I was asked to describe my previous internship experiences.



For the given DAG-

One of the possible topological sort will be-
1 2 3



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.
Step 1 : I solved this problem with brute force approach. By taking two vertical lines at a time, we can find the maximum amount of water that could have been stored into this container. And then finally taking the maximum of all the possibilities to get the final answer.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then I gave the solution using two pointer approach and coded it on a paper. Interviewer was happy with my code.
This interview round was a mix of HR round and Data Structures round.
The interviewer particularly showed interest in my research intern and discussed few things around it.



The given linked lists may or may not be null.
If the first list is: 1 -> 4 -> 5 -> NULL and the second list is: 2 -> 3 -> 5 -> NULL
The final list would be: 1 -> 2 -> 3 -> 4 -> 5 -> 5 -> NULL
Step 1 : I first applied brute force approach. My approach was to first iterate over both the given Linked List and store the number represented by their nodes in a vector. Then sort the vector and convert the vector into a Linked List.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then I proposed a solution where we take two pointers at the beginning of both the sorted Linked List. Using the fact that both the Linked Lists were sorted we can progressively increment one of the pointer at a time and add the corresponding nodes' value to a new Linked List (before updating the pointer).



For the given binary tree

The level order traversal will be {1,2,3,4,5,6,7}.
I implemented the level order traversal of a binary tree using BFS algorithms and queue Data Structure.

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?