Tip 1 : Prepare System Design
Tip 2 : Practice DSA Questions properly
Tip 3 : Practice OOPS and DBMS Concepts
Tip 1 : At least 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.
The majority of questions were asked on trees and linked lists. (and a little bit of DP). we were asked 2 questions. Sometimes if the candidate is unable to come up with the solution to any of the problems then another question is added (depends on the interviewer’s mood).



Input: Let the binary be as shown in the figure:
Output: Linked List: 15 -> 40 -> 62 -> 10 -> 20 -> NULL
Explanation: As shown in the figure, the right child of every node points to the next node, while the left node points to null.
Also, the nodes are in the same order as the pre-order traversal of the binary tree.



If the given list is {1 -> -2 -> 3} (which is sorted on absolute value), the returned list should be {-2 -> 1 -> 3}.
The interviewer started with a discussion about a recent project I worked on. Then, I had 2 DSA questions.



A subsequence of an array/list is obtained by deleting some number of elements (can be zero) from the array/list, leaving the remaining elements in their original order.




In the above complete binary tree, all the levels are filled except for the last. In the last level, all the nodes in the last level are as far left as possible.

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?