Tip 1: Try to learn the fundamentals first.
Tip 2: Give as many contests as you can, It will help you in coding rounds.
Tip 3: Practice as much as you can.
Tip 1: Make it one-pager
Tip 2: Mention things that are related to the job profile only
It was a normal coding round, where I had to solve 2 questions in 60 minutes.



The given singly linked list is 6 -> 5 -> 3 -> 4 -> 7 -> 1 -> 2

The modified linked list should have all even values in starting and odd values in the end.
I did it by simply dividing linked list in two parts and then finally merging it.



You may assume that given ‘X’ and ‘Y’ definitely exist in the given binary tree.
For the given binary tree

LCA of ‘X’ and ‘Y’ is highlighted in yellow colour.
If the left subtree height is greater, then the result is whatever is returned by the left as it has the highest depth elements.
Similarly, if the right subtree height is greater, then the result is whatever is returned by the right as it has the highest depth elements.
If the heights of both left and right subtrees are equal then the current node is the common ancestor of the deepest leaves.
First, they started with an introduction. Then they asked me about my current company and my projects. He also asked about some computer fundamentals. We discussed a lot about that, and then he gave me a coding question and asked me to solve it with the best approach.



Consider the two strings 'P' = "abfyg" and 'Q' = "gabfy"
If we cyclically rotate String 'P' to the right once. The resulting string P becomes "gabfy" which is equal to String 'Q'.
Therefore it is possible to convert String 'P' to String 'Q'.
It was a straightforward question, and you just have to rotate the string 1 2 times clockwise & anticlockwise and check if, in any case, it is equal to the second string.
In this round, he asked me a lot about my projects, SQL, computer fundamentals, current job, and role. Then after discussing all this, he gave me one coding question at the end.



It's a simple DFS question, and we just need to do DFS and check if we are visiting the same node again; if yes, then there's a cycle.

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?