Tip 1 : Build Problem-solving skills, GRIND DSA and CP questions.
Tip 2 : In theory prepare the operating system, OOPs and OOD first.
Tip 3 : Prepare your projects before the interview.
Tip 1 : Make crisp and to-the-point resume.
Tip 2 : Highlight the relevant information in bold.
This round consists of total 12 questions. 10 were MCQs and two coding questions.
For the given string “deed” :
The possible subsequences are {“”}, {“d”}, {“e”}, {“de”}, {“e”}, {“de”}, {“ee”}, {“dee”}, {“d”}, {“dd”}, {“ed”}, {“ded”}, {“ed”}, {“ded”}, {“eed”} and {“deed”}.
As, {“d”}, {“e”}, {“de”}, {“ed”} and {“ded”} are repeated.
The distinct subsequences are {“”}, {“d”}, {“e”}, {“de”}, {“ee”}, {“dee”}, {“dd”}, {“ed”}, {“ded”}, {“eed”} and {“deed”}
Thus, the output will be 11.
As the answer can be large, return your answer modulo 10^9 + 7.
This round was a code pair round hosted on Bar Raiser. I was expected to solve two coding questions in one hour.
You have a special type of car containing any number of seats.
There are multiple ways to solve this question.
I started with brute force and then gave an optimised solution by sorting both the arrays.
We cannot use the element at a given index twice.
Try to do this problem in O(N) time complexity.
Started with the brute force solution by checking the sum of each pair in both the arrays.
And the optimised way is to simply print the maximum of each array.
This round was the hiring manager round. The interview was more like a discussion. It revolved mainly around my projects and internship. At last, he asked some theory questions along with language-specific questions.
In this interview, I explained to him my most recent project which I did standalone in my previous internship.
Some of his questions were.
Why do you prefer MongoDB over SQL?
If I had to do this with SQL, what will be the schemas and the changes?
How do you handle concurrency?
How optimal is this? Is there any scope for improvements?
What can be done for improvements?
Explain the flow of this project.
Tip 1 : Prepare the whys and hows of the projects.
Tip 2 : Try to explain everything will reference to a real scenario.
Tip 3 : Be honest and clear with your approach.
What are mutex locks, deadlocks and their prevention? These questions were asked concerning my project.
Along with this question, he asked me some language-specific ( c++ ) questions. He asked about the internal implementation of unordered maps and maps in c++. He was expecting a one of the self-balancing tree explanation.
Tip 1 : Have an understanding of the data structures that you use in your code.
Tip 2 : Try to explain theory with examples rather than direct definitions.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How many times will the loop execute? for(int i = 0; i < 5; i++)