Round 1
Questions:
- Remove duplicates in an array.
- Sort array based on frequency.
Example:
Input: [4,4,1,2,2,1,1,1,5] Output: [5,2,2,4,4,1,1,1]
Candidate's Approach
The candidate discussed their existing work and resume before coding the two questions in Java. They dry ran a few test cases and were asked to optimize their code. Additionally, core Java questions were posed during this round.
Interviewer's Feedback
No feedback provided.
Round 2
Questions:
- Implement a queue using stacks and vice versa.
Candidate's Approach
The candidate was grilled for about 10 minutes on each point written on their resume. They were expected to write production-ready code for the queue and stack implementation, focusing on coding style and understanding of constructors and main functions. A lot of core Java questions were also asked.
Interviewer's Feedback
No feedback provided.
Round 3
Questions:
- Find if a linked list is cyclic, if yes then print the number.
- Given two trees, find if they are mirrors of each other or not.
Candidate's Approach
The candidate answered two DSA questions and then discussed their resume and general work-related topics.
Interviewer's Feedback
No feedback provided.
HR Round
Questions:
- Basic HR questions and salary discussions.
Candidate's Approach
The candidate participated in a discussion regarding compensation, which is in the range of 16-20 CTC depending on previous CTC. They noted that despite multiple negotiations, the pay could not be increased as the company is particular about it.
Interviewer's Feedback
No feedback provided.