Education: B.Tech CS Tier 3
Experience: 2 years 6 months at FAANG
Location: Hyderabad, Telangana
Round 1 (DSA):
- Length of longest subarray with sum 0 (https://leetcode.com/problems/subarray-sum-equals-k/description/)
- Total amount of water trapped by rainwater (https://leetcode.com/problems/trapping-rain-water/description/)
Round 2 (Java + LLD):
- What happens when you run a java program?
- Questions on OOPs principles, encapsulation vs abstraction, inheritance vs composition, etc.
- Questions on exception handling, checked vs unchecked exceptions with examples, throw vs throws keyword, when to use what, etc.
- Internal working of HashMap. Sort a HashMap in descending order of its values without using any external data structures (Interviewer was looking for answer using Java Streams API)
- Questions on Spring and Spring Boot, Commonly used annotations like: @SpringBootApplication, @ComponentScan, @Service, @Configuration, etc. What is dependency injection, what are its different types, when to use which type, how is it done differently in spring vs spring boot, etc.
- Small coding exercise of a Spring Boot application where class A calls class B and class B calls class C. Show how the annotations are used and how dependency injection happens.
Rejected after round 2. I had prepared LLD thoroughly but the interviewer was focused on Java questions only.