Tip 1 : Practice More and More
Tip 2 : Focus on the quality of questions rather than the quantity
Tip 3 : Use pen and paper while doing practice and learn to dry run the code.
Tip 1 : Have some projects on your resume
Tip 2 : Do not put false things on your resume
The round was conducted on D2C platform.
The timing was between 2pm to 4pm.
The test duration was 30 mins.
There was no negative marking.
It was an MCQ round.
It was a face-2-face coding round.
The time of the interview was 3 pm.
The interviewer was very kind and supportive.



Where distance between two points (x1, y1) and (x2, y2) is calculated as [(x1 - x2) ^ 2] + [(y1 - y2) ^ 2].



Elements are in the level order form. The input consists of values of nodes separated by a single space in a single line. In case a node is null, we take -1 in its place.
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
Explanation :
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
It was conducted in the afternoon,
The interviewer was very kind and supportive.


A subtree of a node X is all the nodes that are below X and X itself.
A binary tree is a tree consisting of at most two children.
Two subtrees are said to be equal if they both have the same structure and the corresponding nodes in both the subtrees are associated with the same character value.



Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
The second question was finding the longest substring with all the unique characters. I used the variable-sized sliding window algorithm to code it in the O(n) approach. She again seems to be very satisfied. Then I was again asked to dry run the algorithm against the given test case.
She clearly told me that brute force of this solution is very easy and she is not expecting me to come up with that.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which SQL clause is used to specify the conditions in a query?