Tip 1 : Go through the basic data struuctures :- arrays, linkedlLst, String, Stack, Queue
Tip 2 : Go through the company specific questions before the interview.
Tip 3 : Have 2-3 projects or internships in your resume to talk about.
Tip 1: Highlight the relevant key skills on your resume.
Tip 2: Be thorough with anything you write in your resume.
The test was taken in the afternoon. It consisted of 3 questions, easy-medium level. Time given was 45 minutes.



A subtree of a node X is X, plus every node that is a descendant of X.
Look at the below example to see a Binary Tree pruning.
Input: [1, 1, 1, 0, 1, 0, 1, 0, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
Output: [1, 1, 1, -1, 1, -1, 1, -1, -1, -1, -1]
For example, the input for the tree depicted in the below image would be :

1
2 3
4 -1 5 6
-1 7 -1 -1 -1 -1
-1 -1
Level 1 :
The root node of the tree is 1
Level 2 :
Left child of 1 = 2
Right child of 1 = 3
Level 3 :
Left child of 2 = 4
Right child of 2 = null (-1)
Left child of 3 = 5
Right child of 3 = 6
Level 4 :
Left child of 4 = null (-1)
Right child of 4 = 7
Left child of 5 = null (-1)
Right child of 5 = null (-1)
Left child of 6 = null (-1)
Right child of 6 = null (-1)
Level 5 :
Left child of 7 = null (-1)
Right child of 7 = null (-1)
The first not-null node (of the previous level) is treated as the parent of the first two nodes of the current level. The second not-null node (of the previous level) is treated as the parent node for the next two nodes of the current level and so on.
The input ends when all nodes at the last level are null (-1).
The above format was just to provide clarity on how the input is formed for a given tree.
The sequence will be put together in a single line separated by a single space. Hence, for the above-depicted tree, the input will be given as:
1 2 3 4 -1 5 6 -1 7 -1 -1 -1 -1 -1 -1



Input: 'list' = [1, 2, 3, 4], 'k' = 2
Output: 2 1 4 3
Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.
All the node values will be distinct.



Input: 'a' = [7, 12, 1, 20]
Output: NGE = [12, 20, 20, -1]
Explanation: For the given array,
- The next greater element for 7 is 12.
- The next greater element for 12 is 20.
- The next greater element for 1 is 20.
- There is no greater element for 20 on the right side. So we consider NGE as -1.
This round was involved questions on data structures, DBMS and some simple REACT based questions since I had mentioned a REACT internship on my resume.



Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
Discussed complexities, write the code for merge sort.
Asked me to write a join query based on a problem statement. Do not remember it.



I came in prepared for data structures. After a simple DSA question on tree traversal the interviewer threw me off guard with a system design problem instead.
Design a parking lot.
Tip 1: Since I was a fresher, i didnt have much clue about this. I created classes that would be required to create specific features.
Tip 2: He asked me the kind of data structures I would need for specific situations for which I gave a solution involving dequeue.
Tip 3: This kind of interview is just to put you in a bit of pressure and see if you can come up with some rough solution to the problem at hand. He may not expect a complete and perfect solution from a frsher.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: