Phone screen:
- Design program to view most recently visited items of a customer in amazon.com (slowly it turns out to be https://leetcode.com/problems/lru-cache but you need to drive this). Once we identified the solution, interviewer asked me to finish the complete code.
Onsite:
Round 1:
Round 2: [System Design]
- Tell about a challenging project I worked and some more
- Design sytem to detect earthquakes. It has to send alerts to all users and scientists.
Round 3:
1 hr lunch with lunch buddy
Round 4:
- 30 mins LP
- Design Amazon locker (write classes and complete the code)
Round 5:
- Tell us about time you did evangilism
- Tell us about a time where you had to work on problem which you had no idea etc
- Design Find command in Linux (ex : Find -type xml will list all xml files in the current directory). write complete code, it should be extensible to add more parameters such as Find -size 5MB).
My advise write down lot of real life examples that match 14 Amazon LP. It is hard to recollect moments of your life during interview.
I didn't receive the offer. I think, it is because I messed up the system design round. I missed the fact that earth quake detector has to be realtime ( I wish interviewer helped me here).
Also, while writing code check with the interviewer if you can skip common parts, so you can come to the main problem quickly. also make sure your varible names are short, so you can write the code faster on white board.