Tip 1 : practice problems of DS
Tip 2 : if unable to cover the entire syllabus, ensure whatever topics you're covered are thorough and practiced
Tip 3 : topics beside DS and coding take much less time to prepare
Tip 1 : keep it short and crisp
Tip 2 : you should be able to justify all things present on your resume



Input: Consider the following Binary Tree:
Output:
Following is the level-order traversal of the given Binary Tree: [1, 2, 3, 5, 6, 4]
I had studied this problem while practicing BST based problems
I remembered the approach, so i started explaining it. Didn't have to write the whole code, the interviewer understood



'N' = 4,
4 can be represented as 2^2. So, 4 is the power of two, and hence true is our answer.
Theory based questions like semaphores, etc
Sudo command
Scanning port command
Tip 1 : you can only answer if you have knowledge



• 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.

Level 1:
All the nodes in the left subtree of 4 (2, 1, 3) are smaller
than 4, all the nodes in the right subtree of the 4 (5) are
larger than 4.
Level 2 :
For node 2:
All the nodes in the left subtree of 2 (1) are smaller than
2, all the nodes in the right subtree of the 2 (3) are larger than 2.
For node 5:
The left and right subtrees for node 5 are empty.
Level 3:
For node 1:
The left and right subtrees for node 1 are empty.
For node 3:
The left and right subtrees for node 3 are empty.
Because all the nodes follow the property of a binary search tree, the above tree is a binary search tree.

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?