Key Questions:
Explain the differences between ArrayList and LinkedList. How does HashMap work internally? What are the differences between HashSet and TreeSet? How do you synchronize a List in Java? 2. Coding Round (45 minutes) The coding round involved solving a problem related to collections. I was asked to write a function that processes a list of strings, counting the frequency of each string and then sorting the results based on frequency. The interviewer provided a sample input and output, and I was asked to write the code on a shared online editor.
Problem Example:
Given a list of strings, return a list of strings sorted by their frequency in descending order. If two strings have the same frequency, they should be sorted alphabetically. I implemented the solution using a HashMap to store the frequencies and then sorted the entries using a custom Comparator. The interviewer was interested in my approach to sorting and handling edge cases like empty lists or null values.
I am going to tell me about yourself?
The following metrics were computed from 1 interview experience for the Virtusa Engineer role in Delhi Cantonment, India.
Virtusa's interview process for their Engineer roles in Delhi Cantonment, India is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Virtusa's Engineer interview process in Delhi Cantonment, India.