Open In App

Amazon Interview Experience | SDE-I

Online round:

Test Pattern: Two coding problems, 28 MCQs
Time: 1 hr 30 min



MCQs were solely based on the questions pertaining to the input/output of a C program. A general pattern observed was that there would be a code snippet in the question and one would have to provide correct output/error of that particular program.

Coding problems included:



  1. Count trailing zeroes in a factorial of a number
  2. A coordinate plane is given. On each point (x, y), there is x+y number of apples on it. A person is standing on (0, 0) and he wants to buy a square plot having N number of apples inside it (including the periphery). Return the value of perimeter of that square plot if the value of N is given

After a couple of weeks, I was called for the face to face interviews. Four rounds of interviews were conducted spanning over two days.

Round-1 (Technical) [60 mins]
Questions in this round were of easy difficulty, having pretty straight forward solutions. The interviewer asked the below-mentioned questions. Once I provided the correct solution, he tweaked the question to some degree and again asked me for the solution. After receiving the correct solutions, he asked me to write the code of it on paper.

Questions:
1. Count all possible paths from top-left to bottom-right in a matrix
Tweak: Count all possible paths from top-left to bottom-right in a matrix having obstacles

2. Find inorder predecessor and successor of the node in BST in which nodes also have a parent pointer along with left and right pointers.

Round-2 (Technical) [120-150 mins]
This round was the most difficult round of the entire process. I was expecting that this round would have an easy-medium kind of difficulty level but the interviewer had other plans. He straightforwardly asked me to solve Longest Palindromic Substring. I was taken aback a bit (as Dynamic Programming hasn’t been my strong point) and sat there doing nothing for about 10-15 mins.

After then, slowly, ideas started coming into my mind and I started to design the solution on the paper. At regular intervals, the interviewer would ask me about what I am thinking and would point out contradictory cases if the approach was wrong. But after some point, I realized that my approach was nowhere in the vicinity of the correct solution and so did my interviewer. So he started providing me hints disguised in questions like “What if you approach the question from this perspective…“. After a couple of hints, I came on the right track and went on to solve the question!

Apart from this, he asked me the questions on heaps, its building, inserting and deleting time complexities, and priority queues.

After the round ended, I was almost certain that I was done for the day but again, the interviewer had other plans!

Round-3 (CS Fundamentals) [30-40 mins]
This round was solely focussed on checking my Computer Science fundamentals. Questions were from the domains of Operating System, DBMS and Computer Networking. Difficulty level was easy, as they were asking only basic questions of this domain. Some of them are mentioned here:

Round-4 (Tech + HR) [90-120 mins]
Technical questions:

  1. Find Excel column name from a given column number (Wrote the solution on paper)
  2. Coin-in-a-line problem
  3. Detailed explanation of need and working of Virtual Memory in Operating System
  4. Overview of pages and page faults

HR questions:

After the round got completed, the HR team informed me that they will get back to me after some days, and guess what, I got the offer!

Last but not the least, I would like to list down some points which I personally experienced during this interview process:

Looking forward to working with you at Amazon.
ALL THE BEST! 🙂

Article Tags :