Amazon | Onsite | SDE2 | Reject
Anonymous User
7465

Finished my onsite with amazon, hopefully this will help you. Preface: each round had 20-30 minutes of leadership principles. Make sure you have different story for each one, for me personally each LP round went very well. Each interviewer told me they liked my answers.

Round 1. OOP
Given log files parse each line based on a delimiter. Then write it to a different file. Make the code as reusable and as readable as possible. Add interfaces, classes etc. Algorithimically easy, but huge emphasis on classes, interfaces and readability. Overall went well for me.

Round 2: LLD + Algo
No inputs given for this question, but the question it was: Given a package a, it may depend on package c, d, e. Those packages may depend on g ,h,i, etc. Given a package class with an install method, create the classes and interfaces. Similiar "idea" to course schedule, but not given any inputs/outputs so had a little trouble. Ended doing DFS ( i wanted to do topligical but interviewer kept veering me towards another solution).

Round 3: LC
This was the bar raiser round. https://leetcode.com/problems/basic-calculator-iii/ exact same question. Had 20 minutes, and basically bombed it. I had 5 minutes left and the interviewer told me to come up with a solution to a simpler version of this problem (no brackets). I was able to quickly code something, but overall went terribly. Basically knew i wasn't gonna get the job.

Round 4: System Design
Went very well, our discussion went over the allotted time and the interviewer said it was the best system design he had for the position. Gave me a little confidence that i may have landed the job. The actual question entirely unique and not like the normal design questions you see.

Hope this helps.

Comments (21)