Amazon started with an online assessment. 2 questions to be solved in 105 minutes. I completed one with all test cases passing. The second questions, I tried a recursive approach but the time limit exceeded. Tried some other random things, by then time was up.
a. BFS on matrix questions: https://leetcode.com/problems/number-of-islands/
b. Number of swaps required to sort an array
Got called for a virtual onsite.
Virtual onsite had 4 rounds, 1 hour each, back-to-back.
a. Half hour of leadership principles, followed by a pretty vague OOP design question.
b. Half hour leadership principles, followed by a system design question to push configuration to network devices.
c. Half hour leadership principles, followed by medium Leet Code question: https://leetcode.com/problems/integer-to-roman/
d. Half hour leadership principles, followed by hard Leet Code question: https://leetcode.com/problems/find-median-from-data-stream/
Tips:
Amazon focusses a lot on leadership principles. So be sure to have a good number of incidents prepared for each of the principles.
Solving most frequently asked questions for Amazon in leetcode helped.