Tip 1 : Try solving the question on your own.
Tip 2 : Practice regularly
Tip 3 : Do some good projects, so that concepts will become clear.
Tip 1 : Highlight your skills.
Tip 2 : Highlight your previous internships.
The 1st round was a MCQ round consisting of 50 problems in 1 hour. The questions were from aptitude, Data structures, microprocessors and some common puzzles.
Josephus and the Queens
The interview started with the general Tell me about Yourself. He mainly wanted to know my subjects and fields of interest. he gave a DSA question. You are given a sorted array and your objective is to construct a BST out of it. The constructed BST should have the shortest possible height. I had to first explain my approach to the problem and when he was convinced I was asked to write the full code for the problem



1. There are no self-loops(an edge connecting the vertex to itself) in the given graph.
2. There are no parallel edges i.e no two vertices are directly connected by more than 1 edge.
Input:
4 5
0 1 5
0 2 8
1 2 9
1 3 2
2 3 6

The source node is node 0.
The shortest distance from node 0 to node 0 is 0.
The shortest distance from node 0 to node 1 is 5. In the above figure, the green path represents this distance. The path goes from node 0->1, giving distance = 5.
The shortest distance from node 0 to node 2 is 8. In the above figure, the pink path represents this distance. The path goes from node 0->2, giving distance = 8.
The shortest distance from node 0 to node 3 is 7. In the above figure, the yellow path represents this distance. The path goes from node 0->1->3, giving distance = 7.
HR asked me about my zone of interests and explained to me some basic rules and what I have to do if I face any kind of problem
Who is your role model?
Why should we hire you?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: