Tip 1 : Go through all the previous available interview experiences.
Tip 2 : Practice atleast 10-20 every topic problems in coding.
Tip 1 : Personal Projects should be mentioned.
Tip 2 : CGPA asked should be at least 7.
It was a pure DS based round. It consists of three questions
Subsequences of string "abc" are: ""(empty string), a, b, c, ab, bc, ac, abc.
It's a standard problem can be found at various sites on the internet. So, I applied the approach that I practised earlier for this question
Input: 'list' = [1, 2, 3, 4], 'k' = 2
Output: 2 1 4 3
Explanation:
We have to reverse the given list 'k' at a time, which is 2 in this case. So we reverse the first 2 elements then the next 2 elements, giving us 2->1->4->3.
All the node values will be distinct.
It's a standard problem can be found at various sites on the internet.
A single coding question and one puzzle was asked in this round. Both were of easy level difficulty. I was given enough time for solving this.
If no suggestions are found, return an empty 2D array.
In the above example everytime we enter a character, a few suggestions display the strings which contain the entered string as prefixes.
There are 100 doors, all closed.
In a nearby cage are 100 monkeys.
The first monkey is let out and runs along the doors opening every one.
The second monkey is then let out and runs along the doors closing the 2nd, 4th, 6th,… - all the even-numbered doors.
The third monkey is let out. He attends only to the 3rd, 6th, 9th,… doors (every third door, in other words), closing any that is open and opening any that is closed, and so on.
After all 100 monkeys have done their work in this way, what state are the doors in after the last pass?
Tip 1 : Listen to the problem carefully
Tip 2 : First create the solution in your mind and then give your answer.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you write a single-line comment in C++?