Hi all, I recently gave interview at Amazon for SDE 2 . Below is my exoereince.
**Round 1: **
2 DSA+ 1 follow up:
- From LC , was related to fruit basket where we can have only 2 type of fruits.. i think its 2 pointer. Dont remember but 2 pointer or sliding window .
- Tree: Diameter question basic . But was asked follow up to return vector of nodes. Messed up big time
LP: Challenge that you faced .
2. something that you were not prepared and you had to deliver like you dont know the tech stack and you had to work on.
Round 2: LLD
I didnt know nothing on LLD . I practiced though , to go through every example i could find . But messed up big time.
=> File fitering and search system . Ask was to how I would solve it.
I answered like to use decorator and factory and stratgey 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 didnt understand anything and had no idea how to do that. Got into union and intersection of queries .
Would really apprciate if some one can answer how to approach this Please :)
So we have File system, multiple folder .. we can have file with same name in multiple folders , now return file based on the query .
LP:
- Above an dbeyond scenario.
- I dont remeber sorry
I am definetly gonna 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 lossing my hopes .
But all the best to you :)


