Tip 1 : Practice as much as you can. Solve a different variety of questions.
Tip 2 : Mention some good projects on your resume.
Tip 3 : Work on your communication skills.
Tip 1 : Mention some good projects on your resume.
Tip 2 : Do not put false things on a resume.
Round 1 was an online coding round consisting of 2 coding questions and 28 MCQs based on C, C++, Java, data structures, algorithms, and core subjects. I solved both the coding questions completely. After getting shortlisted, a total of 4 interviews were to take place, each being eliminative in nature. The time for each was fixed to 60 minutes each and each of them involved writing the complete code on an IDE link shared by the interviewer. For each question, time complexity has to be told.



Infix notation is a method of writing mathematical expressions in which operators are placed between operands.
For example, "3 + 4" represents the addition of 3 and 4.
Postfix notation is a method of writing mathematical expressions in which operators are placed after the operands.
For example, "3 4 +" represents the addition of 3 and 4.
Expression contains digits, lower case English letters, ‘(’, ‘)’, ‘+’, ‘-’, ‘*’, ‘/’, ‘^’.
Input: exp = ‘3+4*8’
Output: 348*+
Explanation:
Here multiplication is performed first and then the addition operation. Hence postfix expression is 3 4 8 * +.



It can be shown that Mean and Median is in the form of P/Q, where P and Q are coprime integers and Q != 0. You need to return P and Q.
For Mode, if the highest frequency of more than one element is the same, return the smallest element.
For Example, for the given array {1, 1, 2, 2, 3, 3, 4}, the mode will be 1 as it is the smallest of all the possible modes i.e 1, 2 and 3.
The interviewer started directly by giving coding questions. He gave me two coding questions. I solved using the basic approach first then he asked me to improve my time and space complexity. Then I improved my algorithm.
I was able to solve both the questions in around 55 minutes. The interviewer seemed satisfied. I got a mail for the second interview after 2 days and the interview was scheduled after 2 days.



A doubly linked list is a type of linked list that is bidirectional, that is, it can be traversed in both directions, forward and backward.
If the number of nodes in the list or in the last group is less than K, just reverse the remaining nodes.
Linked list: 8 9 10 11 12
K: 3
Output: 10 9 8 12 11
We reverse the first K (3) nodes. Now, since the number of nodes remaining in the list (2) is less than K, we just reverse the remaining nodes (11 and 12).



The string is ‘RR’, ‘RB’ so we can combine ‘RR’ and ‘RB’ as the last character of ‘RR’ i.e ‘R’ matches with the first character of ‘RB’. But we cant combine ‘RB’ and ‘RR’ as the last character of ‘RB’ i.e ‘B’ doesn't matches with the first character of ‘RR’ i.e ‘R’ so our answer is '4'.
The interview started with the interviewer’s introduction and then my introduction and then one coding question. Then he asked me to improve this. So I improved my time complexity. The interviewer was very friendly and helpful. Then we had some discussion on OOPs.



The array may contain duplicate elements.
The array can also contain negative integers.
The size of the array is at least 2.
There exists at least one such subarray of size k.
This was a technical round. The interviewer gave me two coding problems to solve.
And questions on os(Explain Banker’s algorithm with an example, Thrashing, Deadlock, Semaphore, etc), DBMS(ACID properties), oops, and projects.



A sample generation tree is shown, where ‘M’ denotes the male member and ‘F’ denotes the female member.

The generation tree starts with a male member i.e. Aakash.
Every member has exactly two children.
The given N and K will always be valid.



For the given array 'ARR' = [7, 12, 1, 20]
The next greater element for 7 is 12.
The next greater element for 12 is 20.
The next greater element for 1 is 20.
There is no greater element for 20 on the right side.
So, the output is [12, 20, 20, -1].
Started with the introduction, project questions, and behavioral questions. Like, Give an example where you spent some time and figured out something on your own.
1. Given two arrays move an element from one array to another only if the average of both the arrays becomes greater than the previous average find which element can be moved.
2. Some BFS related questions don’t remember exactly
3. Minimum element in the stack without using another stack
In the first question, I got nervous and couldn’t come up with an approach. The interviewer was very friendly and helped me to understand the approach and then asked me to write the code. The next two questions I was able to solve.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?