Tip 1 : Be confident and have a positive attitude when appearing as a fresher. You should be able to communicate your ideas.
Tip 2 : Be a good listener. Ask questions for clarification of the problem. Discuss your approach.
Tip 3 : Have a good understanding of DS and algo, should be able to code.
Tip 1 : Add those things you should be able to talk about.
Tip 2 : Keep it clean and catchy.
3 coding question. 2 medium, 1 hard



Perform each query on the original array only i.e. every output should be according to the original order of elements.
Let the array be [1, 2, 3, 4, 5, 6] and the queries be {2, 4, 1}. For every query, we’ll perform the required number of left rotations on the array.
For the first query, rotate the given array to the left by 2 elements, so the resultant array is: [3, 4, 5, 6, 1, 2].
For the second query, rotate the given array to the left by 4 elements, so the resultant array is: [5, 6, 1, 2, 3, 4].
For the third query, rotate the given array to the left by 1 element, so the resultant array is: [2, 3, 4, 5, 6, 1].
The steps were similar to the famous array rotation question. Rotate the array using required loops.


A slot that has been counted as a perfect hit can never count as a pseudo-hit.
Original String = “RGYB” and Guess String = “YGRR”.
.png)
The second slot of both the guess and original matches, hence it’s a perfect hit. The guess string contains yellow, which is also present in the original string but not at the same slot as the guess slot. Hence it’s a pseudo hit. The guess string also contains two red slots, but the original string contains only one red which is also not at the same slot as the guess string; hence it is also a pseudo hit. Therefore total points will be 2+1+1= 4.



Discussion on a topic and how to approach for the solution.
The interviewer was supportive and he asked me various questions. He asked me a question similar to N Sum. Asked me to optimise it as much as possible. Had discussion over topics such related to oops, Java, Java script, data structures, DBMS, Trees, graphs, some named algorithm, merge sort etc



Each pair should be sorted i.e the first value should be less than or equals to the second value.
Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
Start with a brute force solution with time complexity N^x, where N is size of the array and x is the number of elements to add. Tried my best to bring down the time complexity to some extent.
It was a managerial round to test candidates presence of mind. Puzzles and mathematical problems were asked. Some situation based questions were also asked in this round.
Find out the odd number out of given Number, derive the formula to find root of a quadratic equation.
Tip 1 : Stay positive
Tip 2 : Take your time and give the best shot
Tip 3 : Try to keep it as a conversation. Interviewer are looking for colleagues, not subordinates.
Interviewer asked me about SDLC, agile etc and situation based questions to know how would I respond in various situations.
Why should we hire you?
Who is your role model?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?