Tip 1 : C++ and OOPS concepts
Tip 2 : Trees and graphs questions
Tip 1 : Mention the grades in the resume.
Tip 2 : Mention Awards and achievements
Interview started with basic intro, then C++ related questions. Code correction, code review, code optimization.
Then one coding question.



We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
Problem solving approach. Some behavioral questions.



• The left subtree of a node contains only nodes with data less than the node’s data.
• The right subtree of a node contains only nodes with data greater than the node’s data.
• Both the left and right subtrees must also be binary search trees.
It is guaranteed that a BST can be always constructed from the given preorder traversal. Hence, the answer will always exist.
From PREORDER = [20, 10, 5, 15, 13, 35, 30, 42] , the following BST can be constructed:

Given a code snippet and need to find out the memory leak. And then fix that memory leak.
Tip 1 : Go through the code snippet.
Tip 2 : If able to find the problem other than the memory leak then it is an advantage.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?