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:
- Count trailing zeroes in a factorial of a number
- 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.
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]
- Find Excel column name from a given column number (Wrote the solution on paper)
- Coin-in-a-line problem
- Detailed explanation of need and working of Virtual Memory in Operating System
- Overview of pages and page faults
- 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! 🙂
- Amazon Interview Experience SDE-1 | Amazon-WOW 2020
- Amazon Interview Experience | Set 167 (SDE I for 1 year 6 months experience)
- Amazon Interview Experience | Set 243 (2.5 Years Experience)
- Amazon Interview Experience | Set 241 (1.5 years experience)
- Amazon Interview Experience | Set 391 (SDE-2, 5.5 years Experience)
- Amazon Interview Experience | 401 (3+Years Experience for SDE II)
- Amazon Interview Experience | Set 242 (1 Year Experience)
- Amazon Interview Experience (For Experience - 2.8 yrs) | SDE 1
- Amazon Interview Experience | Set 248 (4.8 Yrs Experience for SDE II)
- Amazon Interview Experience for SDE-1
- Amazon Interview Experience for SDE-1
- Amazon SDE-2 Interview Experience
- Amazon interview Experience | Set 412 (SDE II)
- Amazon Interview Experience | Set 309
- Amazon interview Experience | Set 139
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.