Tip 1 : Concentrate more on BT and BST
Tip 2 : Prepare your project well.
Tip 1 : Keep it clean and concise
Tip 2 : Use single page, ATS-compatible resume
OA was given during the evening slot at around 5 PM for a duration of 90 minutes. The platform was cocubes and it was very user-friendly.



• The given leaf node becomes the root after the inversion.
• For a node (say, ‘x’)
○ If there exists the left child that is not yet taken then this child must become the right child of ‘x’.
○ If the left child is already taken then the right child is still on the right side of ‘x’.
• The parent of ‘x’ must be the left child of ‘x’.

Consider the above binary tree (image- before inversion), if the given leaf node is ‘1’ then the binary tree after inversion becomes exactly the same as given in the image representing after inversion.
The given binary tree will only have distinct values of nodes.






1. A binary tree is a tree in which each node has at most two children.
2. The given tree will be non-empty.
3. The given tree can have multiple nodes with the same value.
4. If there are no nodes in the tree which are at distance = K from the given node, return an empty list.
5. You can return the list of values of valid nodes in any order. For example if the valid nodes have values 1,2,3, then you can return {1,2,3} or {3,1,2} etc.

Consider this tree above. The target node is 5 and K = 3. The nodes at distance 1 from node 5 are {2}, nodes at distance 2 from node 5 are {1, 4} and nodes at distance 3 from node 5 are {6, 3}.
It was a technical interview round taken around 1 PM. The interviewer was very friendly and helpful. First there was resume discussion for 10 minutes and he went on through it line by line asking about the skills mentioned. Then we briefly discussed my project and then technical part started.



The order of subsets is not important.
The order of elements in a particular subset should be in increasing order of the index.
It was like a rapid-fire round, to be honest. The interviewer shooted around 15-20 questions related to OS and OOPS within a span of 10 minutes. The questions were of very basic type and a bit medium. Topics include semaphore, paging, virtual memory, bankers algo, deadlock conditions, ram vs rom, class vs struct, polymorphism etc.
Tip 1 : Be perfect with the basics of OOPS.
Tip 2 : Revise the concepts of OS and focus on deadlock.

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?