Amazon | SDE-2 | Interview Loop
Company: Amazon
Role: SDE-2
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
5 rounds in total.
Round 1 - OA (Kinda tough)
- 2 Medium-Hard LC. Don't really remember the exact questions, but they were on prefix sum + binary search & sliding Windows + Sorting
Round 2 - DSA (Medium)
- LP discussion => 20 mins
- DSA Q1 - Question on tree traversal and LCA. Started with a brute force solution, eventually coded O(N) constant space single pass solution. No Hints => 25 min
- DSA Q2 - Slightly tricky question on array manipulation. Could be done through Priority Queue / Binary search. He wanted both approaches.
Round 3 - LLD (Medium)
- LP discussion => 15 mins
- LLD Question => Design Parking Lot. One added complexity was to make all the functions thread safe.
Round 4 - HLD/HM (Medium Hard)
- LP discussion => 10 mins
- Discussion on past projects. He went deep. => 25 mins
- Design a low latency service, which has multiple upstream services, which are not that performant. We want our service to be extremely low latency. Further asked to scale the service, trade offs while scaling etc etc. Had to draw the rough HLD diagram.
Round 5 - Bar Raiser (Kinda Hard)
- LLD Question - Write code for a class that takes in data through web sockets from external vendor. Compute metrics like Mean, Median etc on aggregated data every 'x' seconds. Also asked to write web socket connection code. Make the system performant and thread safe. Involved threading, batch processing, and some web socket knowledge.
- LP discussion => 10 mins
Verdict : Selected :)