Tip 1 : Be confident
Tip 2 : Adhere to what you prepared
Tip 3 : Should know your projects thoroughly.
Tip 1 : should be easy to understand.
Tip 2 : only facts and no exaggeration in skills.
First round is on amcat which checks your basics knowledge of verbal, quantitative aptitude basics of engineering.
It consist three coding questions based on dsa like tree, graph and vectors maximum connection question i remember of graph.
For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].
Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].
Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].
Interval [10, 12] does not overlap with any interval.
Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
Practise greedy problems
V is the number of vertices present in graph G and vertices are numbered from 0 to V-1.
E is the number of edges present in graph G.
The Graph may not be connected i.e there may exist multiple components in a graph.
I had done this ques before. So it did not take me much time.
1. A node will be in the bottom-view if it is the bottom-most node at its horizontal distance from the root.
2. The horizontal distance of the root from itself is 0. The horizontal distance of the right child of the root node is 1 and the horizontal distance of the left child of the root node is -1.
3. The horizontal distance of node 'n' from root = horizontal distance of its parent from root + 1, if node 'n' is the right child of its parent.
4. The horizontal distance of node 'n' from root = horizontal distance of its parent from the root - 1, if node 'n' is the left child of its parent.
5. If more than one node is at the same horizontal distance and is the bottom-most node for that horizontal distance, including the one which is more towards the right.
Input: Consider the given Binary Tree:
Output: 4 2 6 3 7
Explanation:
Below is the bottom view of the binary tree.
1 is the root node, so its horizontal distance = 0.
Since 2 lies to the left of 0, its horizontal distance = 0-1= -1
3 lies to the right of 0, its horizontal distance = 0+1 = 1
Similarly, horizontal distance of 4 = Horizontal distance of 2 - 1= -1-1=-2
Horizontal distance of 5 = Horizontal distance of 2 + 1= -1+1 = 0
Horizontal distance of 6 = 1-1 =0
Horizontal distance of 7 = 1+1 = 2
The bottom-most node at a horizontal distance of -2 is 4.
The bottom-most node at a horizontal distance of -1 is 2.
The bottom-most node at a horizontal distance of 0 is 5 and 6. However, 6 is more towards the right, so 6 is included.
The bottom-most node at a horizontal distance of 1 is 3.
The bottom-most node at a horizontal distance of 2 is 7.
Hence, the bottom view would be 4 2 6 3 7
It was a interview both hr plus technical
Questions were asked on:
Explain your PROJECTS?
State merits demerits of PROJECT?
Can it be scaled?
Normal oops concepts and mongodb.
Tip 1 : Should know your project
Tip 2 : Answer with confidence.
Explain oops concepts, dsa, mongodb
Tip 1 : Learn dsa using courses from sites like from coding ninjas.
Tip 2 : Answer it with confidence and accurately.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you create a function in JavaScript?
Can we apply if we have active backlog.