Amazon | SDE-2 | YOE-2 years
I recently got contacted by an HR recruiter for Amazon. I appeared for the online test and the onsite rounds.
Online test - 2 medium level questions, in heavy story format.
Recruiter contacted me next day for scheduling onsite.
Onsite Round 1 - 2 LP questions to begin with (Deliver results)
Ques 1 - Populating Next Right Pointers in Each Node
Ques 2 - Find the unique number in a stream of numbers that are pairwise duplicate. Have to solve in log(n).
Test Case - 1 1 3 3 6 4 4 8 8 1 1 2 2
Ans - 6
Solved both questions, with proper time complexity etc. Interviewer was looking for all edge cases covered
Onsite Round 2 -
Ques 1 - Print level order traversal of n ary tree in spiral order.
Ques 2 - A story based question based on binary trees. (Not on LC)
Solved both questions, with proper time complexity, space complexity etc. Interviewer was looking for all edge cases covered.
2 LP questions followed (Learn and Be curious)
Hiring Manager Round - 2-3 LP Questions were asked.
Design makemytrip.
Grilled on all components used, pros and cons of each, and why they were chosen. Database diagram, apis used, component design
Went well, was able to answer all questions.
Awaiting results!