Amazon | SDE1 New Grad | Nov 2019 [Offer]
Anonymous User
8730

Round 1:

  • LP - Tell me about a time where you had to make a decision based on limited information and how it impacted the outcome.
  • You are given a list of documents you have to find top 10 words and their frequency and how many documents that word occurred.
    I discussed with the interviewer that can input be List of list of string, he agreed and I created my own class for output. I used two hashmaps and one hashset.
    I know there must be a better solution for this problem but at that time I came up with this

Round 2:

Round 3:

  • LP- Tell me about a time where you did not know something and how you tackled it(Something related to it)
  • Interviewer told in starting he was not looking for speed or time efficiency, but a code which is readable and can be extended easily in future. You are given a thousands of kindle books, each book have metadata like title, page count, author. Design a filter that can filter based on title and pages.
    I designed an Abstract class filter that can take input Metadata object and concrete class can be like titleFilter or pageCountFilter which have exact filtering logic.
  • Follow-up: what if we want to filter based on both title and page count, I naively replied pass output of one to next filter which was causing iterating over list twice, i came up with new solution but that kind of broke my design. And we ran out of time anyway.

I got lucky that I got easy questions, overall interview experience was nice. They do not expect you to run the code, try to communicate whatever you are thinking and let them know your approach before you implement it.

Comments (23)