Tip 1 : Never leave any topic from any chapter / Subject
Tip 2 : Learn to explain your thoughts well
Tip 3 : Learn from previous experiences / interviews / problems asked.
Tip 4 : Atleast 4 projects in Resume
Tip 1 : Atleast 4 projects on Resume
Tip 2 : Do not write false things. You always get caught. Be genuine.
2 Coding problems , MCQs (CS related, ML related)
class BinaryTreeNode {
int data; // Value of the node.
BinaryTreeNode *left; // Pointer to left child node.
BinaryTreeNode *right; // Pointer to right child node.
BinaryTreeNode *next; // Pointer to next right node at same level.
}
Consider the figure shown below. The left part represents the initial binary tree and right part represents the binary tree after connecting adjacent nodes at the same level.
In the tree shown in the picture above -:
The ‘next’ pointer of the node having value 2 is connected to the node having value 3.
The ‘next’ pointer of the node having value 4 is connected to the node having value 5.
The ‘next’ pointer of the node having value 5 is connected to the node having value 6.
The ‘next’ pointer of nodes having value 1, 3, 6 will have a value NULL as there are no next right nodes in their cases.
1. The structure of the ‘Node’ of a binary tree is already defined. You should not change it.
2. The root of the binary tree is known to you.
3. There is at least one node in the given binary tree.
4. You may only use constant extra space.
Easy problem. Standard one. I had already solved this problem before.
BFS using queue was used.
Fix algorithm to solve the problem. Its standard. Used 2 pointer approach (slow-fast)
2 Coding problems, No compilation of code. Only pseudocode required
Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]
Output: 3.5
Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
I knew how to solve , had practiced earlier.
Used Binary Search.
Could not complete code, got stuck in maths, but passed
If both horizontal and vertical distances are the same for two leaf nodes, then print the one with smaller node data.
Simple easy standard problem. Solved using DFS
OS-CN fundamentals
What is peer-peer connection?
Tip 1 : Be thorough with CN concepts
Virtual memory related questions. Many follow up questions
Tip 1 : Be thorough with the subject.
Tip 2 : Speak what you know. You get many follow up questions
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which operator is used for exponentiation in Python?