Amazon Interview Experience | SDE-I

Online round:

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

MCQs where solely based on the questions pertaining to 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 co-ordinate plane is given. On each point (x, y), there are 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 value of N is given

After 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. Interviewer asked below mentioned questions. Once I provided the correct solution, he tweaked the question by 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 node in BST in which nodes also have a parent pointer alongwith 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 easy-medium kind of difficulty level but interviewer had other plans. He straight forwardly asked me to solve Longest Palindromic Substring. I was taken aback a bit (as Dynamic Programming haven’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, interviewer would asked me about what I am thinking and would point out contradictory cases if 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 the 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, 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:


  • What is Deadlock?
  • How deadlocks can be detected?
  • Given a directed graph of process dependency, write a code to detect deadlock. (Solution: Cycle in Directed Graph)
  • What are ACID properties in DBMS?
  • Difference between TCP and UDP

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:

  • Why Amazon?
  • Which was the most difficult interview round and why?
  • Did you solve all the questions in all the rounds?
  • Given the fact that your current company is also good, why are switching the company at such an early stage of your career? (Reason for asking this was because it had only been two months since I started my first job)
  • What were the mistakes that you have committed in your current job and what did you learn from it?

After the round got completed, 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:

  • Interviewers provided enough time for the candidate to think, design and write the solution.
  • They were willing to help the candidate in case he is unable to solve the problem by providing hints and pointing out caveats in his/her solution.
  • Rather than the solution, they were more interested in checking how a candidate approaches a problem and whether he/she has ability to solve it if provided some help.
  • Testing candidates’ coding skills with pen and paper coding style.

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

Write your Interview Experience or mail it to contribute@geeksforgeeks.org



My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


2


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.