Must Read Amazon Interview Questions | Amazon Code

Here in this post we discuss the overall Amazon Interview Experience USA, Amazon Interview Experience Canada  and also Amazon Interview  Questions . Here in these posts we cover Amazon SDE-I | Onsite | Seattle-USA | Interview Experience, Amazon code asked in interviews and at the end we give some tips on How you can prepare for Amazon.

The sections are Divided as

  1. Amazon Interview Experience, Amazon Interview Questions USA 
  2. Amazon Interview Experience, Amazon Interview Questions  Canada
  3. Amazon Interview Experience, Amazon Interview Questions India
  4. Must Read Amazon Interview Questions.
  5. Amazon coding Questions 
  6. How to Prepare for Amazon


About Amazon

Amazon is guided by four principles: customer obsession rather than competitor focus, passion for invention, commitment to operational excellence, and long-term thinking. We are driven by the excitement of building technologies, inventing products, and providing services that change lives. We embrace new ways of doing things, make decisions quickly, and are not afraid to fail. We have the scope and capabilities of a large company, and the spirit and heart of a small one.




Wells Fargo Interview Experience

Amdocs Recruitment process , Amdocs Interview Questions

1. Amazon Interview Questions USA /Amazon Interview Experience USA

AMAZON CODEAmazon Interview Questions | SDE-I | Onsite | Seattle-USA |

I want to share my expereince with interviewing with Amazon recently for SDE-I position. I gave my Hackerrank coding challenge in Feb . Passed all cases for 1st Question and 10/17 for the second. The questions were similar to what you can find in Amazon question bank. Received request for phone interview with in a week. I was working for my Bloomberg Onsite at the same time, so it was a great thing as I didn’t have to study anything extra. Scheduled Phone Interview on 17th March 2021. I had my Bloomberg onsite on 12th March. Boombed it . Got a reject on the morning of 17th , great start to the day. Got a Number of island question in the coding part, along with some follow ups and customer obsession in leadership principles. Got a final Onsite call a week after my phone interview. Scheduled it for 9th April .

Here is the excert :


Round 1 of AMAZON INTERVIEW: Leadership – Have backbone
Coding : linkedHashMap question similar to LRU
I was initially completely phased by the question and blabbered how we can use queues and all to solve the question, but then the interviewer gave hints on how to actually solve the problem. Got done with a working solution at the last minute of the interview. Didn’t discuss complexity, as we were out of time.


Round 2 OF AMAZON INTERVIEW : Leadership : Learn and be curious , and Ownership
Coding : design a fast food restaurant with kiosk and how will you order and follow-ups
This was probably the bar raiser. Took almost 35 -40 mins for leadership principles went in every detail of the story and ask clarifying questions. In design, I went with object-oriented design by going ahead and designing classes but while doing it he gave a few pointers what he wanted to see and I tried to make changes but was so restless as time was running out. According to my liking this design part sucked.


Round 3 : Leadership: Deliver Results and Bias for action
Coding : straight forward design HashMap question with complexity and followups.
This was a fun interview for me. It went great i gave great examples in leadership and breezed through the coding question as i had done this before. He gave some good follow ups and was able to answer them. Probably my best interview so far.


Round 4 : Leadership: Invent and Simplify , Customer Obsession. Insist on the Highest Standards and Dive Deep
This was the final round with the engineering manager . Dough very deep in all the stories. There was also a shadow present in the interview.


It’s important you keep speaking throughout the interview, even if you feel you are stuck. I was stuck on a couple of stages but just kept on ASKING something which probably made no sense. The interviewer will understand and give cues.


Overall , I guess the interviewers were more understanding than Bloomberg and it was a good experience. I will be graduating in May 2021. I have a couple of years of previous experience in a MNC.

Amazon Interview Questions| SDE2 | Seattle |

OA Assessment :
I gave OA on 4th jan There were 2 question, one was hard leetcode and other was medium level but not from leetcode. I couldn’t pass all the test cases of medium question but did pass all the test cases for hard level and for both questions I need to mention my approach to solve it. I received a result on the same day that I have cleared OA round, thanks to leetcode community.


I was asked to choose between 3 dates for my next interview which will be total of 4 interviews on the same day of which 3 will be based on coding and one will be system design. And all four rounds will have leadership principles based questions as well.
I choose the last date from the given dates as I needed more time for preparing my coding and system design round. Especially system design as I had 0 exp in this as my current position was more based on front end technology.


I chose 21st jan for my next interview. While preparing for the interview, I solved around 200 questions of leetcode and around 40 tushar roy dp videos. (I have already prepared them before, so it didnt take much time to do them again). Also I practiced oop low level design quetion for 2 days and tried to do system design in a week where 1st half I would to system design and 2nd half I would practice coding.
I was only left with one day before interview and I did not prepare anything for my leadership principles questions.

By this time I did not receive any invitation from interviewers for my interview on next day. Soon I was informed that the position is already filled and they will take my interview for different team on different day. I was given option again to choose one out of 3 dates. And as I knew that I will need enough time to prepare for low level design and system design questions I again chose the last date that was feb 19 2021.


I started preparing with low level design question from ctci book for almost a week (I was also working for my current company). Then from 1st feb I started preparing for system design for 10 days straight from youtube videos and other resources. I gained some confidence but I knew this topic is vast and I cannot make justice to this in 10 days. Anyways, I then revised my coding questions again primarly amazon freq asked question on leetcode. And gave around 4 days to prepare for leader ship principles. I always thought I could prepare it faster but coming up with scenarios that perfectly fit to the leadership priciples were hard for me but discussing it with my gf and receiveing her feedback helped me in preparing this as well. Now I was very nervous before my interview.


19th feb 2021.
1st Amazon chime round(video):
I received a call from one person and he asked me several leadership questions and than gave me a coding question.
I initially thought it is easy for me to code this question as it was mainly based on manipulating number format inside a string and so I just explained him the approach, but then he told me other cases that I was not considering and those cases made the problem more complex. So I started coding and I was getting stuck as I was using multiple while loops. then he asked me to declutter my answer and did that but was unable to write a working code to complete the question. I was disappointed as I knew that I couldnt even finish coding question so I have lost the opportunity for amazon. The interview ended 5 min before and I asked him a question that I have already prepared regarding amazon.


2nd Amazon chime round(video):
This was the system design round. I was joined by 2 people. The question was mainly based on amazon internal system. I tried to come up with the solution but it was not the best. Also they asked me several questions regading my design and I could not answer most of them but could answer few.
Overall this round was not good for me as well.


3rd Amazon chime round(video):
I started this round with sip of monster as I was so unmotivated now to move forward as I was sure I will not get the offer. I was joined again by 2 people. they asked my some leadership questions, pressed me harder on one of my answer but I was able to defend it well. Then I received a low level design question for one of the game. I never played that game so I asked them to explain it to me. They opened the game for me and shown how its played. I was asked to first design that game and then write logic on how to play. I was able to rock this round as I was able to complete my design of game as well as write the logic to play it(it involved bfs algo). Interviewer seemed happy and I finished this round 5 min before my next round


4th Amazon chime round(video):
I was contacted by a guy working from 8 years in Amazon. He again asked me several leadership principles based questions. By this time I repeated most of my stories. Then for some reason the coding link question was not working so we decided to code in the system design round link.
The question was again based on low level design of a system (similar to lru, lfu cache but different int the way it will work). I have previously solved lru and lfu but this was quite different from them. With the help of my interviewer I could manage to write a brute force way to design that cache. This round continued for more than an hour. Overall I was not very optimistic with this round as I needed lots of hints and still managed to get a brute force algo.



Amazon Interview Questions| SDE1 | Seattle |


Online Assessment :
The OA was over Hackerrank. There were 2 coding questions with each one requiring some written explaination about the thought process, time and space complexities.

The questions were from the curated list of Amazon OA questions available on the internet. My code passed all the test cases for both the questions and I was contacted by the recruiter the next day and we had a discussion on the next step – Virtual Onsite.


Virtual Onsite :
I had my virtual onsite 10 days after I passed the OA. Interviews were 1 hour long with 15 minutes break after every interview. Each interview consisted of 20 minutes of LP based discussion.


  1. Round 1 : System Design – A typical distributed system design question. I am pretty sure I bombed this one.
  2. Round 2 : Object Oriented Design – Started with some vague requirments. Asked questions and clarified the requirments. Came up with a simple OOP class. The interviewer kept on adding the requirments and I modified the code accordingly. I felt I did well in this one.
  3. Round 3 : Coding – A Problem on graphs with some follow-ups. I was able to solve the problem and was able to address the follow-ups. Later I was asked to write custom testcases. (I Couldn’t find the question on LC).
  4. Round 4 : Coding – A problem on Recursion and Memoization. I was able to solve and I walked through the code with an example test case. (I Couldn’t find this question on LC either, definitely LC hard).


2. Amazon Interview Questions Canada /Amazon Interview Experience canada

Here below we discuss Amazon canada Interview questions



Phone Screen


I was first approached by technical recruiter from LinkedIn and he had a 30-minute phone screen with me. No technical questions were asked, he just wanted to understand my background and he talked briefly about the job responsiblity. He then sent me a link to the job description. I was contacted via email to schedule the virtual interviews few days later.



4 rounds of virtual interview for AMAZON


Round 1:


  • 2LPs (20 mins)
  • a question related to spliting strings with space to a given size such that the result is an array of strings such that the length of each string is less than or equal to size n


I was able to solve this question and the interviewer seemed satisfied with my approach


Round 2:


  • bar raiser
  • 2LPs (25 mins)
  • question: there is a server that records a vehicle’s coordinates (x,y) every second. The objective is, given an intersection’s coordinates (x,y), start_time, end_time, write a function to find the number of vehicles that crosses the intersection.
    • e.g. vehicle v1, t1, coordinate is (1,0); t2, coordinate is (3,0), if the given intersection’s coordinates is (2,0), then there is 1 vehicle (v1) that passes the intersection


In my opinion, this question was the most vague and hardest questions (expected from bar raiser). I wasn’t able to solve this problem as I was confused by the problem itself, even I asked a lot of clarifying questions.


Round 3:


  • 2LPs (20-25mins)
  • question: Concatenated Words except the output is the opposite, which was array of array of words that can combine to the word in the list


I wasn’t able to code a workable solution (wish I finish all the problems from the Amazon list)


Round 4:


  • software development manager round
  • 2LPs (20-25mins)
  • OOD. Design a library that can convert temperature units. The client should be able to use the existing temperatures in the library to convert temperature. The client should also be able to convert their custom temperatures using custom formulas from the existing temperatures in the library.


I was shocked when he asked me this question as I was told by the recruiter that this round is a system design round, not OOD. I prepared for system design the whole time. Needless to say, I bombed this round.




Amazon | SDE2 | Canada


  1. Online Assessment of AMAZON:
    2 coding questions + work-style assessment

    1. Count all the numbers that are right side of it and lesser (bubble sort – TLE , merge sort accepted) – Number of swaps selection sort – Done – Merge Sort Approach
    2. Robot with direction instructions : should be in the circle after all the instruction processing (using normal x, y = 0,0, then 4 directions up, down, left and right) – Robot Bounded In Circle – Done
  2. Onsite 1 : 
    1. 2 LPs
    2. getMin(), hasNext() of (list of lists)
  3. Onsite 2 : 
    1. 2 LPs
    2. getRandom(), add, remove, search() constant time O(1)
    3. Followup, how do you handle if multiple request comes, dirty read issues, how do you maintain critical section
  4. Onsite 3 : 
    1. 2 LPs
    2. Design ElevatorSystem with 4 elevators, get optimal elevator to near
  5. Onsite 4 : 
    1. 2 LPs
    2. Design priority score calculator for each appointment in amazon warehouse. Explanation : Design a system which maintains details about many warehouses and loading and unloading details at each warehouse. The system should optimally work for all the warehouses and able to maintain the queue for unloading the shipment.



Amazon | SDE-I | Canada Virtual |

  • Online Assessment (90 minutes):I got asked following two questions in the 105 minute time limit on hackerrank:


    Storage Optimization or Maximum Area after Horizontal & Vertical cuts – Greedy based solution.
    CloudFront Caching – Underlying problem is to find different connected components in a graph.
    I implemented both questions but was failing 1 test-case in both of them.


  • Onsite (4 rounds): Each round was an hour long.
    – Round 1 : Coding – Binary Tree Traversal based question using DFS + 2 LP questions for 20 minutes
    – Round 2 : Bar raiser/Hiring Manager round. Interviewer was senior, asked and drilled down in LP questions a lot + Coding – Tree Lowest Common Ancestor
    – Round 3 : Low Level Design (TicTacToe) + LP Questions
    – Round 4 : High Level Design (Facebook Messenger) + LP Questions 


All the interviewers were very humble and helpful. Coding rounds were fairly easy for me. Didn’t do well in the third round as I hadn’t prepared well enough for low-level designs. Interviewer was generous enough to give hints along the way.





Wells Fargo Interview Experience

Amdocs Recruitment process , Amdocs Interview Questions

3. Amazon Interview Questions INDIA /Amazon Interview Experience INDIA



Round 0 : Telephonic Round
Recruiter reached out to me on call mentioning I have cleared the round and they will be scheduling a Telephonic round with me. This round was re- scheduled 3 times due to inavailability of recruiter, which was very frustating. Finally it happened. It was a DS ALgo Round. I was asked one question on Arrays. Difficulty ranges to easy-medium. Does not exactly remember the question now.


After around 3 weeks got a mail of clearing the Telephonic Round. They shared the schedule for virtual interview round with the panel (happened after 2 weeks).


The schedule was like :


Round 1
This round was taken by SE (2 years of Exp) which was most of DS Algo and Some Behaivioural Question. I was asked two problems : (Similar to these, Not Exactly same)



Solved both the questions. Interview went smooth.


Round 2
This round was pretty much similar to that of first. Just that Interviewer was more experienced ( SDE2 or equivalent). Both technical and Behavioural competency was tested.
Problems were similar to:



Again solved both the problems.


Round 3
Due to inavailabilty of interviewer, this round was rescheduled to later date (around 14 days). This round tested my design ability . I was given a sample problem and asked to design the class diagram on this. Most of the time was spend over discussing and implementing the solution. Later I was asked a query using SQL which could be easilty done if you have basic understanding of JOIN clause. I was not able to write the query that moment, but explained him the join condition. Later he asked me about my work at company and some behavioural questions on top of it.


Round 4 Managerial Round
Did not happened yet, Waiting for the dates.





  1. They are very peculiar about the leadership principles, Each round, I was asked some questions from them.
  2. Try to think loud before the interviewer. It helps.


Amazon INTERVIEW QUESTIONS | SDE1 | Hydrabad |

Online Assesment for 2 hour consisted of 2 Questions

1. Priority Queue based minimum 2 addition based approach

2. brute force based question

1st Technical round 1hr

1. Find minimum cost of adding n ropes of different size so that if cost of adding 2 peices of rope is r1+r2. Same PQ based approach.

2. Search an element in an array if adjecent element differ by +-1.
3. 2 Leadership Principle questions.

2nd Technical round 1hr

1. No of ways to score target runs if batsman can score 1,2,3 runs at time. (Top down DP)

2. Given a BST, Print the elements in sorted order in O(n) time complexity and without extra space (Morris Algorithm :( )

HM Round
1. 45 Min of Straight 7-8 LP Questions answered almost flawlessly.


Amazon INTERVIEW QUESTIONS | SDE1 | Hydrabad |


Written test consist of 2 Coding question and 28 MCQ (DS+OS). 4 technical round.

Round 1: Discuss about one of my project and 1 array based question and 1 linked list based question.

Round 2: Asked 4-5 questions based on Tree data structure and 1 question based on backtracking and asked me to write code on paper. Round 3: Asked approach for a problem based on backtracking and then asked to optimise it. and then he asked question on OS (Deadlock,Page replacement policy, LRU implementation), DBMS (normalization), Heap and Hashing.

Round 4: Asked me to write code for a tree based question and discuss about my projects mentioned in my resume


26 March: Email Sent
28 March: Referral given
9 April: OA Submitted
20 April: First two rounds
4 May: Second two rounds
7 May: Confirmation Mail


I don’t remember OA much but I just remember clearly using priority queues in both the questions. I think OA questions are pretty much available on Leetcode. Just need to search them well 🙂
Amount of Leetcode questions done: 587/1857 Solved – Easy 190 Medium 333 Hard 64




Interview 1: Tech


  • The interviewer was very friendly. We started off by introducing ourselves. He then told me that he will be dividing this interview into 4 parts namely: Coding, Fundamentals (optional-mainly depending on the time), Behavioral and then if I want to ask something.
  • I won’t be explicitly telling you the question but the question asked was leetcode hard and again on priority queues with further follow up for optimisations.
  • After that since code discussion already took so long we directly skipped into behavioural questions. Standard Amazon LP questions. Do prepare them as they deep dive into it.
  • Last was my time to ask him and I just asked some questions regarding role etc and then we closed the session off.


Interview 2: Tech


  • My next interview started just after ten minutes of my first interview. Barely got much time to rest.
  • This round I had two interviewers where one was shadowing. So basically one person was only asking and taking part in the interview, the other one was just quietly listening.
  • Here also we started off my introduction and then we went forward with coding.
  • In this round I was asked 2 coding questions. The first one was a leetcode medium trees which was then further optimised. The second question was not exactly on leetcode but could be fairly implemented using stacks. I took some time to get it but was able to. Quickly optimised the code to its best.
  • Since the coding took most of the time, this round didn’t have that many LP questions asked. We just had a discussion on one of my college projects which used AWS and the interviewer was interested in knowing about it.


After both of the rounds ended I felt satisfied by the way I performed. I thought I did whatever I could do in my scope. After a week and a half, I got a call from my recruiter telling me that I’ll be having my next two rounds on Tuesday.


Interview 3: Bar Raiser


  • The interviewer I got this time was a pretty experienced guy. I think all the bar raisers are people who are experienced.
  • We had our introduction and then we moved to LP round.
  • Since he himself was from Backend and the team I’m in my current company also happens to be the same, he started discussing my work. Honestly, for me, it was one of the tough cause of being a fresher there are a lot of terms that I don’t know which ended up making me feel embarrassed.
  • He did ask some LPs which I answered to my best.
  • After that we moved to the coding round. He asked me a leetcode hard based on topological sort. I first did it using DFS topsort but realised that I was missing a huge case in it. Removed the entire code and redid it all over again using BFS Topsort. Maybe the anxiousness from LP questions never went away leading to a blunder like this.
  • This was the worst round that I had out of all.


Interview 4: Hiring Manager


  • We finally reached the last round the hiring manager.
  • The interviewer looked pretty strict to me and was very straightforward.
  • After the introductions, we moved to the coding where he asked me a leetcode medium question on arrays. I gave him brute force and then optimised it to O(n) space O(1). Super proud of doing that.
  • He also asked me some fundamental questions regarding OOPS and DBMS.
  • Then we had the usuals LP questions and post that I asked some regarding the work etc



4.Must Read Amazon Interview Questions.

  • Difference between process & thread?
  • What are deadlocks and what are the necessary conditions for deadlocks to happen?
  • Some real life applications of thread & process
  • Tell me about a time when the requirement was not clear to you? What you did and what was the final outcome?
  • Let’s discuss about a complex project that you worked on. What was the final outcome and what you learned? There were some follow up questions on web sockets based on my answer.
  • Difference between synchronous I/O and asynchronous I/O?
  • Some questions based on Node JS non blocking I/O
  • How works when we type it in URL.
  • Multiprocessing, multitasking, multithreading, etc

PREPARE AMAZON Behavioral questions like

  • What changes did you fight for?
  • What is something you are proud of?
  • What mistakes did you make?
  • How do you see yourself in 5 years?
  • I asked few position-related questions at the end.



Amzon Hacker Rank assessment


  • Problem 1:
    Algorithm Swap – You’ve been asked to evaluate the effeciency of an old sorting algorithm. The algorithm is used to sort an array of distinct n numbers:

Try to find the smallest pair of indices 1<= i <= j <= n-1 such that arr[i] > arr[j].

If there is no such pair, stop.

Otherwise swap arr[i] and arr[j] and repeat finding the next pair.


Calculate the number of swaps performed.


Input: int[] arr = {7, 1, 2};
Output: 2

Swaps :
1 <-> 7 resulting in 1, 7, 2
7 <-> 2 resulting in 1, 2, 7


  • Problem 2:
    Robot Rodeo – You’ve build a simple language to control a robot:


G instructs to move forward one step.

L instructs to turn left in place.

R instructs to turn right in place.


After completing the instructions, the robot would repeat them in an infinite loop. Build a simulator based on the list of commands to determine if there exists a circle such that the robot always moves within the circle.


RG -> RG
/\ |
| \/
RG <- RG

The robot will never leave the circle.


Write a function which returns an array of Strings either YES or NO based on whether the robot is bound within a circle or not, in order of test results.


Input: G L
Output: No Yes

for command G, it would move forward and no circle is formed (G -> G -> G-> …) – NO
for commmand L, it would move in circle turning 90 degrees. – YES


Sample Input:

n = 6, size = {2, 3, 4, 5, 6, 7}

Sample Output :


Approach: This can be solved by using minimum heap.

  • Given a matrix with values 0 (trenches), 1 (flat), and 9 (obstacle) you have to find the minimum distance to reach 9 (obstacle). If not possible then return -1. The demolition robot must start at the top left corner of the matrix, which is always flat and can move on the block up, down, right, left. The demolition robot cannot enter 0 trenches and cannot leave the matrix.

Sample Input : [1, 0, 0], [1, 0, 0], [1, 9, 1]]

Sample Output : 3

Approach : This can be solved by using BFS or DFS. All test cases passed for both so that I expected for the second round. After 15-20 days I got a mail from HR for an Amazon Chime Interview. There will be 2 rounds on that day only

  • Optimizing Alexa SuggestionsIn this question 1 list is given with x and y coordinates and an integer X is given. We need to find X restaurants near the customer from location (0,0).
Example 1 : 
O/P: [[1,-1],[1,2]]
  • Device Application PairsIn this question device capacity, foregroundAppList and backgroundAppList is given. We need to find the foreground and background pair which optimally utilizes the device capacity. List has set of pair where first integer represents id and second integer represents amount of memory required.
Example 1 :
capacity = 7, 
Example 2 : 
capacity = 10, 





Wells Fargo Interview Experience

Amdocs Recruitment process , Amdocs Interview Questions

How to prepare for Amazon Iterview?

Practice DSA questions rigorously. Be comfortable in implementing an approach. For every question, you’ll be asked to write the code. Try to discuss your thought process with your interviewer, that way they can guide you best. Be rock-solid about the basics of any algorithm or data structures that you use, in terms of time complexity, space complexity, any corner cases or limitations.


Preparation & Learning tips for AMAZON


  • For LP-based questions, do remember to use STAR strategy. Prepare a couple of scenarios cause they tend to ask LPs directly ex: when did you show customer obesession? etc.
  • Answer behavioral questions using the STAR (Situation, Task, Action, Result) method.
  • Do study your entire resume word by word. You should know each and everything you have written in it.
  • If you are not able to answer don’t make up answers, just be honest. Interviewers have interviewed several candidates, they can tell when a candidate is lying. Especially seniors interviewers so don’t make up scenarios especially for LP.
  • You can always buy leetcode premium. But that’s totally subjective and your call to make. It does open up Company-specific questions. That helps!
  • Read a lot of experiences from discussion tabs. It gives you an insight into what you need to prepare for the interviews.
  • Read as many interview experiences as possible.
  • During the coding round, keep talking to the interviewer regarding your approach, assumptions, time complexity and ask questions to narrow down the problem.
  • Write clean production-ready code by considering edge cases.
  • When asked about projects try to explain every small detail as possible.
  • Go through amazon’s leadership principles most of the behavioral questions are related to those.
  • Don’t panic whenever you get stuck, Interviewers are there to help you.









Above we tried to compactly put all the required resources to crack Amazon interview.The post includesAmazon Interview Experience, Amazon Interview Questions USA ,Amazon Interview Experience, Amazon Interview Questions  CanadaAmazon Interview Experience, Amazon Interview Questions India,Must Read Amazon Interview Questions,Amazon coding Questions and finally How to Prepare for Amazon.If  you liked it do share and comment and help us reach every student.

Thank you.


Leave a Reply

Your email address will not be published. Required fields are marked *