Amazon | Onsite | SD2 | Interview Experience
Company: Amazon
Role: sde ii
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
Putting the questions that were asked to me during my 4 rounds of interviews. Feel free to discuss solutions in the comments.
Round 1
Design a package manager installer. Each Package has dependencies. So install accordingly. (course schedule theme of problem)
Sample input:
a -> b,c,d
d -> e,f
Round 2
Design a Playlist where each time a user requests to shuffle Tracks inside it, the playlist should be shuffled in a non-predictive manner.
Follow up: Make the shuffle such that no two artists have songs appearing back to back.
Round 3
System Design: Design a machine learning system that supports real time inference engine and long running inference engine.
Had to probe the interviewer a lot to figure out basic information like what kind of inputs will be provided, expected SLAs for long running inference engine.
Input data will be rows and columns containing data points. Real time SLAs are 1 hr to return the result. Long running has an SLA of 1 day.
Round 4
Input: "Hello hello, world this is me and ME!"
Find Top K frequent words. (Priority Queue approach)
Follow up: Optimize the code to give top K+10 or K+20 freq without doing repeated computations.
Follow up: Propose solution if the Priority queue cannot be stored locally beyond a certain limit.
Most of the problems can be mapped to leetcode defined ones. The follow ups need some thinking but overall had a good experience with the interviewers. I'm still awaiting the decision since I just gave the interview yesterday. Hoping to give back to the community since the questions are still fresh in my mind.
Good Luck.