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 of figure out basic information like what kind of inputs will be provided, expected SLA's for long running inference engine.
Input data will be rows and colums containing data points. Real time SLA's 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 one's. The follow ups need some thinking but overall had a good experience with the interviewer's. Im still awaiting the decision since i just gave the interview yest. Hoping to give back to the community since the questions are still fresh in my mind.
Good Luck.


