Amazon Interview Experience for SDE-1 (On-Campus)
There were a total of 4 rounds (1 Coding Test+3 Technical Interviews)
Round 1 (Coding Test): This round had 4 sections, debugging, coding, Workstyle Assessment, and aptitude. Debugging and aptitude were easy and didn’t even require any preparation.
- Given an expression in the form of a string “A+B=C”, where any two of A, B, and C were given, you had to find out the value of the third variable.
Round 2(Technical Interview 1):
Round 3(Technical Interview 2):
- Given 2 numbers N and M count the number of set bits in them. He first asked me to make a function that returns the number of set bits of a number, then asked me to code the solution. He wanted the most optimized solution something like this. https://www.geeksforgeeks.org/count-total-set-bits-in-all-numbers-from-1-to-n-set-2/
- Then he asked for a few OS and networking questions like the Difference between semaphore and mutex, the Difference between TCP and UDP, and what is Banker’s algorithm. Then he jumped to my CV and asked about the Internship I did.
Round 4(Technical and Managerial):
- Which sorting algorithm would be appropriate to sort a line of almirahs according to their height so that my effort is minimum. (Selection sort)
- https://www.geeksforgeeks.org/check-two-nodes-cousins-binary-tree/ in one single pass.
- Tell me about a time when you were faced with a complex problem and what solution you came up with? Then he asked if I could have done anything different and better.
In the end, there were 8 students who gave 4 rounds and 6/8 were selected including me
Note: I prepared for DSA from Striver’s SDE sheet ( https://takeuforward.org/interviews/strivers-sde-sheet-top-coding-interview-problems/ ) and from GeeksforGeeks company questions and leetcode.
All the best to everyone who is preparing for amazon.