Amazon SDE 2 Interview
Company: Amazon
Role: SDE 2
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
Hi all, I recently gave interview at Amazon for SDE 2. Below is my experience.
Round 1:
2 DSA + 1 follow up:
1. From LC, was related to fruit basket where we can have only 2 types of fruits. I think it's 2 pointer. Don't remember but 2 pointer or sliding window.
2. Tree: Diameter question basic. But was asked follow up to return vector of nodes. Messed up big time
LP:
1. Challenge that you faced.
2. Something that you were not prepared and you had to deliver like you don't know the tech stack and you had to work on.
Round 2: LLD
I didn't know nothing on LLD. I practiced though, to go through every example I could find. But messed up big time.
=> File filtering and search system. Ask was how I would solve it.
I answered like to use decorator and factory and strategy pattern. Obviously gave red flag, because interviewer was expecting like how would you take in query parameters. Told to use maybe class models for that, I didn't understand anything and had no idea how to do that. Got into union and intersection of queries.
Would really appreciate if someone can answer how to approach this please :)
So we have File system, multiple folders. We can have file with same name in multiple folders, now return file based on the query.
LP:
1. Above and beyond scenario.
2. I don't remember sorry
I am definitely going to be rejected. I feel shitty to not being able to clear it. I have been trying since so long but not able to clear anywhere. At this time just losing my hopes.
But all the best to you :)