Round 1
Questions:
I received a Codility test link and completed it.
Codility Test Link
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 2
Questions:
- DSA Question: Merge Intervals
- Generate test cases for the above question.
- DSA Question: Trapping Rain Water
- Explain the logic of the code and generate test cases for this question.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 3
Questions:
- Do you know what anagrams?
- DSA Question: Group Anagrams
- Explain your approach and generate test cases for this question.
- Discuss time complexity.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.
Round 4
Questions:
- Difference between Compile Time Polymorphism and Runtime Polymorphism?
- How does the Garbage Collector work?
- Explain the Singleton design pattern and how to make it thread-safe.
- Discuss a Concurrent real-time notification system - low latency.
- How to keep a Distributed system consistent?
- How to solve Deadlock?
- Compare Microservices vs Monolithic. What if you are migrating from Monolithic to Microservices and both don’t work?
- What challenges did you face while migrating from Monolithic to Microservices and what was your role?
- Analyze the following code:
String s1 = "hello"; String s2 = new String("hello"); String s3 = "hello"; System.out.println(s1 == s2); // False System.out.println(s1 == s3); // True System.out.println(s1.equals(s2)); // True
- Difference between Queue and PriorityQueue.
- Write a Java program to find the first non-repeating character in a given string.
- Input: "swiss" Output: 'w'
- Input: "racecar" Output: 'e'
- What if there is a stream instead of a string?
- How to solve conflicts with your colleague?
- How to debug a production bug?
- How will you solve a Null Pointer Exception?
- What are the cons of the Locking Mechanism? How will you solve it?
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.