Register for our webinar

How to Nail your next Technical Interview

1 hour
Loading...
1
Enter details
2
Select webinar slot
*Invalid Name
*Invalid Name
Select your webinar time
By sharing your contact details, you agree to our privacy policy.
Step 1
Step 2
Congratulations!
You have registered for our webinar
Oops! Something went wrong while submitting the form.
1
Enter details
2
Select webinar slot
*All webinar slots are in the Asia/Kolkata timezone
Step 1
Step 2
Confirmed
You are scheduled with Interview Kickstart.
Redirecting...
Oops! Something went wrong while submitting the form.
Iks white logo

You may be missing out on a 66.5% salary hike*

Nick Camilleri

Head of Career Skills Development & Coaching
*Based on past data of successful IK students
Iks white logo
Help us know you better!

How many years of coding experience do you have?

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Iks white logo

FREE course on 'Sorting Algorithms' by Omkar Deshpande (Stanford PhD, Head of Curriculum, IK)

Thank you! Please check your inbox for the course details.
Oops! Something went wrong while submitting the form.

Help us with your details

Oops! Something went wrong while submitting the form.
Our June 2021 cohorts are filling up quickly. Join our free webinar to Uplevel your career
close

A Complete Guide to Amazon Interview Process and Coding Interview Questions

by Interview Kickstart Team in Interview Questions
April 24, 2023
Want to join Amazon? Here's how you can nail the interview
You can download a PDF version of  
Amazon Coding Interview Questions
Download PDF

A Complete Guide to Amazon Interview Process and Coding Interview Questions

Do you know that only about 2% of those who apply at Amazon get through? The tech giant has a pretty rigorous hiring process. The recruiters carefully select all the Amazon coding interview questions to test the overall abilities of the applicants. 

To face the Amazon coding challenge questions, you’ll need a lot of practice, guidance, and the correct strategy. As the company receives thousands of resumes every year, you’ll need to ace your tech interview to get through.

If you intend to acing Amazon’s coding interview, you must adopt the right strategy. Without that, beating the stiff competition is an uphill climb. 

In this article, we’ll look at the type of Amazon coding interview questions you can expect. These are the things we will discuss:

  • The Complete Amazon Interview Process
  • Different Levels at Amazon
  • Amazon Coding Interview Questions
  • Scoring and Evaluating System at Amazon Interviews
  • FAQs on Amazon Coding Interview Questions

The Complete Amazon Interview Process

Before we get to Amazon coding interview questions, we’ll begin with everything you need to know about how Amazon conducts its interviews and what they’re looking for. Let’s jump right in!

How are the Profiles Shortlisted at Amazon?

The process of profile shortlisting at Amazon is as follows:

  • First, the applications come from websites/job boards, and recruiters search profiles from social media and references.
  • Then, L4/L5 initial automated filtering happens based on skills.
  • Next, for all levels, the recruiters do manual shortlisting.
  • Finally, before the initial conversation, the recruiter forwards the shortlisted candidates to the Hiring Manager (HM). They provide about 20-30 profiles per week to HM, and currently, 30% of sourcing is done by the HM. Amazon also makes use of the LinkedIn commons project.

Did you know? At Amazon, a Hiring Manager creates a job opening based on new needs or for attrition replacement. Annual planning starts in July at Amazon and ends in October. In this plan, the increased headcount is approved based on business growth. In fact, each job opening is approved by the finance and recruiting team, boss, and super boss. There is also a system to track all open positions and their state.

What Is Unique About Amazon’s Interview Process?

For the most part, the Amazon interview process is similar to other FAANG companies. However, they have a couple of key rounds and certain Amazon coding challenge questions that make the interview process unique. 

The Loop is centered around Amazon’s 14 leadership principles:

Unlike most other companies, in the Amazon on-site interview, the Loop is heavily centered around the company’s 14 leadership principles. Recruiters evaluate you against these leadership principles directly or indirectly at any on-site interview stage. 

The presence of a Bar Raiser:

Amazon also has a special “Bar Raiser” round, where specially trained employees (known as Bar Raisers) gauge if you’re the right fit. The primary function of the Bar Raisers is to maintain the hiring bar high by seeking out only the best talent. They have a decisive say in the interview’s outcome, so if you ace the core technical rounds and Amazon coding challenge questions, you must pass the bar raiser round to lock an offer.

To become a bar raiser, an interviewer should have done 100+ interviews. The bar raiser has to undergo special training and shadow other bar raisers. The bar raiser may not be from the team you’d be joining, but they may be under the same VP org. The bar raisers evaluate if the candidate is better than 50% of the existing employees.

With the two major unique factors discussed, let us now look at the Amazon interview process in more detail.

Various Rounds at the Amazon Interview Process

While Amazon coding interview questions are a crucial part of the process, there are other two important stages. The Amazon technical interview has these three main stages:

  1. The initial phone screen
  2. The Amazon coding assignment
  3. The Loop

Before these stages, recruiters have the first round of conversations to check your communication skills, interest in Amazon, immigration, relocation, salary requirement, etc. Let’s now look at what happens in each of these rounds:

1. The Initial Phone Screen

This round happens with a recruiter from Amazon who will get in touch with you after your profile gets provisionally shortlisted for the role. The recruiter will ask you questions about your experience, core skills, and expectations from the role. 

  • A phone screen is done by someone mostly from the same team. For ICs, an L7 does it, and for managers, a manager does it. 
  • Position fit, leadership skills, and functional skills like design, coding, and people skills are checked here. 
  • In this round’s coding questions, an automated tool is used to evaluate.

You can also expect a couple of behavior-related questions in this round. At the end of the interview, the recruiter will set a date for you to take up some Amazon coding challenge questions.

For more details on Amazon phone questions and how to answer them, check out the Amazon Phone Interview Questions article.

2. The Amazon Coding Assignment

Depending on the role you’re applying to, the coding assignment happens either remotely or in person. For most developer positions, the coding assignment happens remotely. Considering the pandemic situation, Amazon decided that it would hold remote assignments monitored in real-time.

  • The Amazon coding challenge questions involve solving 1-2 coding problems within a stipulated time. It usually happens on a coding interview platform or a Google Doc. 
  • The hiring manager evaluates your approach to solving the problems and how you go about arriving at the solution. 
  • At the end of the assignment, expect a few questions about the concepts you employed to solve the problem(s). 

If your performance in the Amazon coding interview questions is satisfactory, a recruiter will get in touch with you to fix a date for the on-site interview. 

7-day Email Course: Interview Prep
Thank you for signing up for 7 Days Email Course!
Keep an eye on your inbox for the first email.
Oops! Something went wrong while submitting the form.

3. The Loop

Amazon’s on-site interview, known as the Loop, is the final phase in the hiring process. Getting through this stage is significantly challenging as recruiters assess you on many aspects before making a hiring decision. 

  • For the interview, the Hiring Manager creates a panel of 4-6 interviewers, and each interviewer is assigned one functional area and 1-2 leadership principles. One of them is a bar raiser, who is nominated by the recruiter, and this interviewer is outside the hiring team. 
  • The panel consists of SDM, Sr. Eng. Manager, principal engineers. For SDMs, program managers/product managers are also there. Each panel member is at least the same level as the interviewing level.

Landing a software engineer job at Amazon is hard, given its rigorous interview process. Nailing it requires the right strategy and direction. Our “FAANG Interview Tips” is a good place to start your Amazon technical interview prep.

Amazon Interview Process for ICs Vs. EMs

For the on-site rounds, there are some differences between interviews of ICs and EMs:

Interview Process for ICs

For ICs, in each round, they’d likely ask you Amazon coding challenge questions and behavioral questions in any of the following combinations: 

  • Two behavior and one coding/DSA question 
  • One behavior and one system design question
  • Three behavioral questions

In terms of questions asked to ICs at different levels,

  • L4 doesn’t get system design questions, and for them, there’s very little focus on behavior. For L4, the focus is on the basics like conflict, adversity, etc. 
  • Starting L5, you get at least one system design question. 
  • The system design and behavior bar is high L6 onwards. 
  • For domain-specific positions like DE, DSc, and Embedded, coding is half DSA and half domain.

Interview Process for EMs

For EMs, the phone screen mostly involves experience and behavior. For each round, one behavioral and one system design or three behavioral questions are asked. The bar for system design and behavior is high from L6 onwards, and coding becomes less important.

The loop typically consists of the following rounds:

  1. Coding round: This round involves solving 1-2 Amazon coding interview questions around algorithms and data structures. The extent of your problem-solving skills is assessed in this round. 
  2. Design round: Hiring managers evaluate your engineering design skills in this round. Your ability to design and work with scalable systems with low latency is assessed.  
  3. Behavioral round: Behavioral interviews at Amazon are based on the company’s 14 leadership principles. The behavioral round is essentially built to test if your attitude and personality traits align with the company’s vision and goals.   
  4. The bar-raiser round: Bar raisers are a group of handpicked employees trained to maintain the hiring bar at Amazon. Their primary role is to find the best candidates by assessing them against a set of predefined parameters. Bar raisers have a veto when recruiters make a hiring decision. If they deem you unfit for the role, you don’t get offered. 

Note: Amazon tends to focus more on behavioral and design interviews for senior positions and coding interviews for junior positions. Additionally, coding interviews don’t have a veto while hiring for senior positions but design interviews have a veto for junior positions. 

Different Levels at Amazon

Here’s a look at the levels at Amazon in Engineering and Tech PGM/Product Management, along with the job titles they stand for:

Amazon Coding Interview Questions

Amazon coding interview questions are focused on algorithms and data structures. Amazon doesn’t provide a question bank to interviewers, just guidelines. The interviewer asks questions about their experience. In the sections below, we look at Amazon coding interview questions from topics that feature in Amazon’s tech interview. 

Amazon Coding Interview Questions on Arrays

Arrays are a popular data structure around which questions are asked in technical interviews. Below are some common Amazon coding interview questions on arrays:

  1. Given: Array A of size N
    Task: Perform operations such as searching an element, inserting an element, and deleting an element by completing the functions. Also, all functions should return a boolean value.
  2. Given: Array A of size N
    Task: Print elements of A in an alternate order (starting from index 0)
  3. Task: Write a code to find the minimum and maximum element in an array
  4. Given: Array Arr of size N
    Task: Print the second largest element from the array
  5. Given: Array A of size N of integers.
    Task: Find the minimum and maximum elements in array
  6. Given: An unsorted array arr[] of size N
    Task: Rotate it by D elements (clockwise) 
  7. Given: A sorted array A of size N
    Task: Delete all duplicate elements from A
  8. Given: An unsorted array arr[] of n positive integers
    Task: Find the number of triangles that can be formed with three different arrays elements if the elements were lengths of the three sides of the triangle. 
  9. Given: An array A of positive integers
    Task: Find the leaders in the array (an element is a leader if it is greater than or equal to all the elements to its right) 
  10. Given: An array A of N elements
    Task: Find the minimum index-based distance between two elements, x, and y
  11. Given: An array A of N integers
    Task: Find any 3 elements in it such that A[i] < A[j] < A[k] and i < j < k
  12. Given: An array A of N elements
    Task: Find the majority element in the array (a majority element in an array A of size N is an element that appears more than N/2 times in the array)
  13. Given: A sorted array arr[] of distinct integers
    Task: Sort the array into a wave-like array and return it — arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5 ...
  14. Given: An array A[] of N positive integers
    Task: Write a code to find the maximum of j - i, subject to the constraint A[i] <= A[j]
  15. Given: An array nums[] of size N
    Task: Construct a Product Array P (of the same size N) such that P[i] is equal to the product of all the elements of nums except nums[i]
  16. Given: An array of size N and a range [a, b]
    Task: Partition the array around the range such that the array is divided into three parts:  All elements smaller than a come first; all elements in range a to b come next; all elements greater than b appear in the end
  17. Given: An array A of size N (the elements of the array are distinct and are sorted)
    Task: Find all pairs in the array that add up to a number K 
  18. Given: An array arr[] of N non-negative integers representing the height of blocks
    Task: If the width of each block is 1, write a code to calculate how much water can be trapped between the blocks during the rainy season
  19. Given: An array of integers
    Task: Find the inversion count in the array (the inversion count determines how far away the array is from being sorted) 
  20. Given: An array arr[] of N integers
    Task: Calculate the median

Amazon Coding Interview Questions on Strings

Strings are a popular data type used to represent text characters. Below are some Amazon coding interview questions on Strings to help you prepare for your Amazon tech interview: 

  1. Given: String S
    Task:
    Check if it is palindrome or not
  2. Given: Two strings a and b consisting of lowercase characters
    Task: Write a code to check whether the two strings are anagrams of each other
  3. Given: String S
    Task:
    Check if characters of the given string can be rearranged to form a palindrome 
  4. Given: String str
    Task: Convert the first letter of each word in the string to uppercase
  5. Given: String str containing only lower case alphabets
    Task: Sort it in lexicographically-descending order
  6. Given: Two strings, S1 and S2
    Task:
    Write a program to merge them alternatively — the first character of S1 with the first character of S2, and so on — till the end of the string
  7. Given: String S containing alphanumeric characters
    Task: Find out whether the string is a palindrome or not
  8. Given: String S
    Task: Reverse the string without reversing its individual words
  9. Task: Write a code to implement the function strstr. The function essentially takes two strings as arguments (s,x) and locates the occurrence of the string X in the string S 
  10. Given: Two strings A and B
    Task: Find if A is a subsequence of B
  11. Given: Two strings s1 and s2
    Task: Write a code to check if s2 is a rotated version of the string s1
  12. Given: Two strings of lowercase alphabets and a value K
    Task:
    Write a program function that tells if the two strings are K-anagrams of each other
  13. Given: Two strings A and B
    Task: Find the characters that are not common in the two strings
  14. Given: A string S consisting of lowercase Latin letters
    Task: Find the first non-repeating character in S
  15. Given: A string S
    Task:
    Find the length of the longest substring with all distinct characters
  16. Given: A string,
    Task: Find the longest substring that is a palindrome in linear time O(N).
  17. Given: A decimal number m
    Task:
    Convert it into a binary string and apply n iterations. In each iteration, 0 becomes 01, and 1 becomes 10. Find the kth (1-indexing) character in the string after nth iteration
  18. Given: Two binary strings A and B consisting of only 0s and 1s
    Task: Find the resultant string after adding the two strings
  19. Given: Two numbers as strings s1 and s2
    Task: Calculate their product
  20. Given: Two binary strings A and B
    Task: Find the product of two strings in decimal value

Amazon Coding Interview Questions on Sorting

Sorting is a crucial topic for coding interviews. Below are some Amazon coding interview questions on sorting algorithms. 

  1. Given: An array arr[] of size N
    Task:
    Check if it is sorted in non-decreasing order
  2. Given: A binary array A[] of size N
    Task:
    Arrange the array in increasing order
  3. Given: An array of size N containing only 0s, 1s, and 2s
    Task: Sort the array in ascending order
  4. Given: an integer N and a list arr
    Task:
    Sort the array using the bubble sort algorithm
  5. Given: An unsorted array of size N
    Task: Use selection sort to sort arr[] in increasing order
  6. Given: An array arr[], its starting position “low,” and its ending position “high.”
    Task: Implement the partition() and quickSort() functions to sort the array
  7. Given: An array arr[], its starting position l, and its ending position r
    Task: Sort the array using the merge sort algorithm
  8. Given: Two integer arrays A1[ ] and A2[ ] of size N and M, respectively
    Task: Sort the first array A1[ ] such that all the relative positions of the elements are the same as the elements in the second array A2[ ]
  9. Given: An integer array of which both the first half and second half are sorted
    Task: Write a code to merge the two sorted halves of the array into a single sorted array
  10. Given: An array arr of size n and an integer X
    Task: Find if there's a triplet in the array which adds up to an integer X
  11. Given: An array of n distinct elements
    Task: Find the minimum number of swaps required to sort the array in increasing order
  12. Given: An array A of integers
    Task: Find three numbers such that the sum of two elements equals the third element — return the triplet in a container result

Amazon Coding Interview Questions on Hashing

Amazon coding interview questions quite regularly include problems that employ hashing. Here are some sample Amazon coding interview questions on hashing: 

  1. Given: An NxN matrix M
    Task:
    Write a program to find the count of all the distinct elements common to all rows of matrix
  2. Given: Two arrays a1[0..n-1] of size n and a2[0..m-1] of size m
    Task: Write a code to check whether a2[] is a subset of a1[] or not
  3. Given: A set of N nuts of different sizes and N bolts of different sizes — there is a one-one mapping between nuts and bolts
    Task: Write a code to match the nuts and bolts
  4. Given: An array A[] of N positive integers, which can contain integers from 1 to P, where elements can be repeated or can be absent from the array
    Task: Write a code to count the frequency of all elements from 1 to N
  5. Given: Two arrays A and B of equal size N
    Task: Find if the given arrays are equal or not
  6. Given: An array of N integers
    Task: Find the first element that occurs K number of times
  7. Given: Two arrays A and B containing integers of size N and M
    Task:
    Write a program to find numbers that are present in the first array but not present in the second array
  8. Given: An array arr of N integers
    Task: Find the first non-repeating element 
  9. Given: An array of strings
    Task: Write a code to return all groups of strings that are anagrams
  10. Given: An array N with positive numbers
    Task: Write a code to find the largest subsequence from an array that contains elements that are Fibonacci numbers
  11. Given: An array of N integers, and an integer K
    Task:
    Find the number of pairs of elements in the array whose sum is equal to K
  12. Given: An integer array and a non-negative integer k
    Task: Count all distinct pairs with the difference equal to k —  A[ i ] - A[ j ] = k

Amazon Coding Interview Questions on Recursion

Recursion is an important concept in technical interviews and can be a tricky area to master. Here are some practice Amazon coding interview questions on recursion for your upcoming interview.

  1. Task: Write a code to print a sequence of numbers starting with N, where A[0] = N, without using a loop, in which  A[i+1] = A[i] - 5, until A[i] > 0. After that A[i+1] = A[i] + 5. Repeat it until A[i] = N
  2. Given: A round table of n persons
    Task: Write a code to find out in how many ways they can shake hands such that no two handshakes cross each other
  3. Given: n number of people in a circle and a number k, such that k-1 persons are skipped, and the kth person is eliminated
    Task: Write a code to figure out the safest place in the circle
  4. Given: A string s
    Task: Remove all its adjacent duplicate characters recursively
  5. Given: An image of size n*m, location of a pixel in the screen(sr, cc), and color nColor.
    Task:  Write a code to replace the color of a given pixel and all adjacent same-colored pixels with a new color, “nColor.”

Amazon Coding Interview Questions on Graphs and Greedy Algorithms

Graphs and Greedy Algorithms are extremely important concepts that you must master if you wish to ace Amazon’s technical interview. Here are some sample Amazon coding interview questions on Graphs. 

  1. Given: Adjacency list of a bidirectional graph
    Task: Write a code to return the adjacency list for each vertex
  2. Given: A directed graph
    Task: Write a code to perform breadth-first traversal of this graph starting from 0
  3. Given: A connected undirected graph
    Task: Write a program to perform depth-first traversal of the graph
  4. Given: A grid of size n*n filled with 0, 1, 2, 3
    Task: Check whether there is a path possible from the source to destination (you can traverse left, right, up, or down)
  5. Given: A square chessboard, the initial position of the Knight, and the position of a target
    Task: Write a code to find the minimum steps required by the knight to reach the target position
  6. Given: An adjacency list of a graph adj with V number of vertices and having 0-based index
    Task: Write a code to find whether the graph is bipartite or not
  7. Given: A 2D binary matrix A(0-based index) of dimensions NxM
    Task: Find the minimum number of steps required to reach from (0,0) to (X, Y)
  8. Given: A directed graph with V vertices (numbered from 0 to V-1) and E edges
    Task: Find the number of strongly connected components in the graph
  9. Given: A directed graph
    Task: Find if a vertex j is reachable from another vertex i for all vertex pairs (i, j) in the given graph
  10. Given: A weighted, undirected, and connected graph of V vertices and E edges
    Task: Write a code to find the sum of weights of the edges of the minimum spanning tree
  11. Given: Weights and values of N items
    Task: Put these items in a knapsack of capacity W to get the maximum total value in the knapsack
  12. Given: N activities with their start date and finish date in array start[ ] and end[ ]
    Task: Select the maximum number of activities that can be performed by a single person, assuming that a person can only work on a single activity in a given day
  13. Given: Arrival and departure times of all trains that reach a railway station
    Task: Find the minimum number of platforms required for the railway station such that no train is kept waiting
  14. Given: A set of N jobs, where each job “I” has a deadline and profit associated with it. Each job takes 1 unit of time to complete and only one job can be scheduled at a time. A profit can be earned if the job is completed before the deadline
    Task: Write a code to find the maximum profit earned and maximum number of jobs that can be done 

Mathematical Problems for the Amazon Interview

Amazon sometimes asks problems around mathematics, where you have to code the solution to a mathematical problem. Below are some such sample Amazon coding interview questions:

  1. Given: The first 2 terms A1 and A2 of an arithmetic series
    Task: Find the Nth term of the series
  2. Given: The first term and common ratio X and R of a GP series
    Task: Find the nth term of the series
  3. Given: Two non-zero integers N and M
    Task: Find the number closest to N and divisible by M. If there are more than one such number, then output the one having maximum absolute value
  4. Given: A 3-digit number
    Task: Find whether it is an Armstrong number or not (an Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself — for example, 371 is an Armstrong number, since 33 + 73 + 13 = 371)
  5. Given: A number N
    Task: Find if the sum of digits of N is a Palindrome number or not 
  6. Given: A positive number X
    Task: Find the largest Jumping Number smaller than or equal to X (a number is called Jumping Number if all adjacent digits in it differ by only 1. All single digit numbers are considered Jumping Numbers. For example: 7, 8987, and 4343456 are Jumping Numbers, but 796 and 89098 are not)
  7. Given: Binary number B
    Task: Find its decimal equivalent
  8. Given: Two numbers A and B
    Task: Find Kth digit at the right of AB
  9. Given: A number N
    Task: Write a code to reverse its digits
  10. Given: A number N
    Task: Check if a number is perfect or not (a number is said to be perfect if the sum of all its factors excluding the number itself is equal to the number)
  11. Given: A number N
    Task: Write a code to find the largest prime factor of that number
  12. Given: Two integers n and r
    Task: Find nCr (the answer may be very large, so calculate the answer modulo 109+7)
  13. Task: Write a program to calculate nPr — nPr represents n permutation r and the value of nPr is (n!) / (n-r)!
  14. Given: A positive integer,] N
    Task: Find the factorial of N
  15. Given: An array of N positive integers
    Task: Find GCD of all the array elements
  16. Given: N
    Task: Count all “a”(>=1) and “b”(>=0) that satisfy the condition a3 + b3 = N
  17. Given: Two numbers (n , m)
    Task: Write a code to find n√m (nth root of m)
  18. Given: A number N
    Task: Calculate the prime numbers up to N using Sieve of Eratosthenes
  19. Given: A positive integer N
    Task: Find the sum of all prime numbers between 1 and N(inclusive)
  20. Given: A string
    Task: Return the index of the first non-repeating character
  21. Given: a 2-D array of integers, where a -ve number is land and +ve number is water
    Task: Count the number of islands.
  22. Task: Find the minimum value in an unbalanced unsorted tree

Practice these Amazon coding interview questions and you’re well on your way to crack your Amazon interview!

Amazon Systems Design Interview Questions

Distributed systems design is an important component in the on-site interview. The design round is particularly important for senior developer and managerial positions. 

  • At junior levels, you’ll usually be asked no design questions. 
  • At intermediate level, you can expect module or API design questions. 
  • Lastly, at senior levels, you can expect system design questions.

Here are some Amazon coding interview questions pertaining to distributed and large-scale systems:

  1. Design an in-memory database system
  2. Design an IP blocking system
  3. Design a voting system, where people will cast their votes and the votes get added to corresponding candidates
  4. Design a system to find 100 top-selling products in a given time window
  5. Design an Amazon online bookstore, where users can view prices and make purchases
  6. Design a system where an office administrator knows how many people are present on each floor of the building, given that the building has 3 floors
  7. Design a system to upload images with tags — users would be able to visit and search for images by entering the tags
  8. Design a notification service that sends notifications to multiple devices
  9. Design a comprehensive workflow system that responds to pause/continue functions
  10. Design a scheduler service that can manage huge schedules with minimal latency 
  11. Design an Instagram or Tinder.
  12. Create a high level design of the black Jack video game
  13. Assuming no cloud services are available, how do you scale up a web server once its popularity increases.

For more details on Amazon system design questions and how to answer them, check out the Amazon System Design Interview Questions article. 

Amazon Behavioral Interview Questions

Apart from Amazon coding interview questions, you will have to answer some behavioral questions too. Amazon’s behavioral interview is starkly different from other FAANG companies. Behavior and leadership questions are very important at Amazon. The behavioral questions are also based on leadership principles:

  • At junior levels, learning and curiosity are important. 
  • On other levels, the leadership principles “disagree and commit”, “customer obsession”, and “hire and develop the best” is important. 

Some leadership principles like frugality are many times not covered. Evaluation is subjective and is based on honesty, integrity, scope of the problem. To get a feel of what sort of questions to expect, we’ve listed some for you below along with the leadership qualities they test: 

  • Ownership: Give an instance where you had to communicate that you were not able to meet your commitments. OR Tell me an instance where you had to push back a product release because of quality issues.
  • Customer obsession: When did you go above and beyond to meet a customer's needs? OR Give an instance when you had to take a customer’s stand in your organization and what happened?
  • Deliver results: Narrate a difficult project or a failed project. What happened and what would you do differently?
  • Disagree and commit: An instance where you disagreed with your manager and what happened?
  • Simplify and innovate: When you got a requirement to implement, how did you simplify it to make it generic?
  • Are right, a lot: Give me an instance, where you had to change your opinion/approach, which you strongly believed in.
  • Learn and be curious: Give an instance where you were assigned a task, but you didn’t know how to go about doing it. How did you go about it?
  • Hire and Develop the best: Did you hire someone who surpassed you?

Now that you have an idea of how leadership qualities are associated with behavioral questions, here are some more Amazon behavioral questions for practice:

  1. Tell us about a time a project you were working on went south. How did you manage the situation?
  2. Tell us about a time when your work-life balance was thrown off gear owing to a demanding project.
  3. Tell us about a time when you leveraged massive chunks of data to build a strategy. How did you execute it?
  4. Why do you want to work at Amazon? How do you think Amazon will impact your life in the coming years?
  5. What would be your stand if your supervisor asked you to do something outside the purview of the company’s policy?
  6. Tell us about a time when it was getting difficult to work with an uncooperative colleague.
  7. Tell us about a time when you apprised the entire team about crucial learnings that you derived while working on a project.

Learn about the 10 Key Behavioral Skills Required to Land a $500k Tech Job here.

Amazon Product Management/Tech PGM Interview Questions

Program managers usually report to a director or Sr. Eng. Manager. Some BUs have a director of Product Management, to whom the product managers report. Some BUs have product managers who report to Director SW Engg and in such cases, 1-3 product managers report to director SW Engg. 

Let us now look at some Amazon interview questions involving Product Management:

  1. Who is your customer and how do you learn about them?
  2. What customer insights did you use to get product direction?
  3. How many engineers do you work with? - Scope and risks
  4. What experience do you have working with finance/legal/sales/mktg - breadth
  5. An example of using data to make decisions
  6. What has been your best GTM and why did it work?
  7. Did you face a situation where you had to make a choice between two good options? – higher order consequences
  8. How do you take goals and ensure that the engg. Teams can deliver them?

Here are some Technical Product Management interview questions:

  1. Explain the most technically complex program you have managed.
  2. How do you manage risks? Did you ever take any calculated risks?
  3. How did you resolve disagreements between teams?
  4. How do you decide when to make a commitment?

Take a look at some more Amazon TPM interview questions here.

Scoring and Evaluating System at Amazon Interviews

After completing the Amazon interview process and answering the Amazon coding interview questions, you must wait for HR to contact you. Let's take a look at how Amazon's interviewers are evaluating you at the given time.

The scoring system involves each interviewer rating the interviewee for each assigned area: 

  • Very strong
  • Acceptable
  • Not acceptable
  • Strongly not acceptable

While filling in the score, they can’t see others’ scores.

Next, a debrief of all interviewers is held. During this debrief, the interviewers may change their scores. At the end of the discussion for hire, the HM and bar raiser have to agree. If they decide to hire, the level will be the same as interviewing for or lower. The level is finally decided by the HM and the recruiter.

While the questions at each level may be similar, the expectated outcomes are different at each level. So the levels can be decided by the quality of answers.

FAQs on Amazon Coding Interview Questions

Q1. How hard is the Amazon coding interview?

The Amazon coding interview is difficult regardless of whether you are a fresher or experienced professional. To weed out unqualified applicants, you'll be given a 2-hour Amazon coding challenge with two difficult questions.

Q2. What questions can be expected in an Amazon coding interview?

Some topics on which you can expect Amazon coding interview questions are: Arrays, Linked lists, Trees, Strings, and Dynamic programming.

Q3. What questions should be asked at the end of an Amazon interview?

Some questions you can ask the interviewer at Amazon are: What does a typical day look like for an employee in this role? How is success defined in this position? What’s the biggest challenge Amazon faces today?

Q4. How to crack the Amazon coding interview?

To prepare, you can spend time on Leetcode, prepare the fundamentals for your domain, and refresh your project's experience. Come up with some stories about your experience and link them to different leadership principles. During the interview, don’t take the interviewer seeking clarification as a negative. Ensure your technical communication while solving the Amazon coding interview questions is on point. In the end, when asked to ask questions, ask good, curious questions.

Q5. How many rounds are there in the Amazon interview process?

The Amazon interview process consists of 5 rounds, each lasting about an hour. The rounds are HR call or email round, online assessment, phone screening, video interviews consisting of Amazon coding interview questions, and an on-site interview, also known as the “Loop” interview. 

Are You Ready to Nail Your Next Coding Interview?

If you are looking for help and guidance on how to prepare for that big interview, consider Interview Kickstart

As pioneers in the field of technical interview prep, we have trained thousands of software engineers to crack the toughest coding interviews and land jobs at their dream companies, such as Google, Facebook, Apple, Netflix, Amazon, and more!

Sign up for our free webinar to learn more!


A Complete Guide to Amazon Interview Process and Coding Interview Questions

Do you know that only about 2% of those who apply at Amazon get through? The tech giant has a pretty rigorous hiring process. The recruiters carefully select all the Amazon coding interview questions to test the overall abilities of the applicants. 

To face the Amazon coding challenge questions, you’ll need a lot of practice, guidance, and the correct strategy. As the company receives thousands of resumes every year, you’ll need to ace your tech interview to get through.

If you intend to acing Amazon’s coding interview, you must adopt the right strategy. Without that, beating the stiff competition is an uphill climb. 

In this article, we’ll look at the type of Amazon coding interview questions you can expect. These are the things we will discuss:

  • The Complete Amazon Interview Process
  • Different Levels at Amazon
  • Amazon Coding Interview Questions
  • Scoring and Evaluating System at Amazon Interviews
  • FAQs on Amazon Coding Interview Questions

The Complete Amazon Interview Process

Before we get to Amazon coding interview questions, we’ll begin with everything you need to know about how Amazon conducts its interviews and what they’re looking for. Let’s jump right in!

How are the Profiles Shortlisted at Amazon?

The process of profile shortlisting at Amazon is as follows:

  • First, the applications come from websites/job boards, and recruiters search profiles from social media and references.
  • Then, L4/L5 initial automated filtering happens based on skills.
  • Next, for all levels, the recruiters do manual shortlisting.
  • Finally, before the initial conversation, the recruiter forwards the shortlisted candidates to the Hiring Manager (HM). They provide about 20-30 profiles per week to HM, and currently, 30% of sourcing is done by the HM. Amazon also makes use of the LinkedIn commons project.

Did you know? At Amazon, a Hiring Manager creates a job opening based on new needs or for attrition replacement. Annual planning starts in July at Amazon and ends in October. In this plan, the increased headcount is approved based on business growth. In fact, each job opening is approved by the finance and recruiting team, boss, and super boss. There is also a system to track all open positions and their state.

What Is Unique About Amazon’s Interview Process?

For the most part, the Amazon interview process is similar to other FAANG companies. However, they have a couple of key rounds and certain Amazon coding challenge questions that make the interview process unique. 

The Loop is centered around Amazon’s 14 leadership principles:

Unlike most other companies, in the Amazon on-site interview, the Loop is heavily centered around the company’s 14 leadership principles. Recruiters evaluate you against these leadership principles directly or indirectly at any on-site interview stage. 

The presence of a Bar Raiser:

Amazon also has a special “Bar Raiser” round, where specially trained employees (known as Bar Raisers) gauge if you’re the right fit. The primary function of the Bar Raisers is to maintain the hiring bar high by seeking out only the best talent. They have a decisive say in the interview’s outcome, so if you ace the core technical rounds and Amazon coding challenge questions, you must pass the bar raiser round to lock an offer.

To become a bar raiser, an interviewer should have done 100+ interviews. The bar raiser has to undergo special training and shadow other bar raisers. The bar raiser may not be from the team you’d be joining, but they may be under the same VP org. The bar raisers evaluate if the candidate is better than 50% of the existing employees.

With the two major unique factors discussed, let us now look at the Amazon interview process in more detail.

Various Rounds at the Amazon Interview Process

While Amazon coding interview questions are a crucial part of the process, there are other two important stages. The Amazon technical interview has these three main stages:

  1. The initial phone screen
  2. The Amazon coding assignment
  3. The Loop

Before these stages, recruiters have the first round of conversations to check your communication skills, interest in Amazon, immigration, relocation, salary requirement, etc. Let’s now look at what happens in each of these rounds:

1. The Initial Phone Screen

This round happens with a recruiter from Amazon who will get in touch with you after your profile gets provisionally shortlisted for the role. The recruiter will ask you questions about your experience, core skills, and expectations from the role. 

  • A phone screen is done by someone mostly from the same team. For ICs, an L7 does it, and for managers, a manager does it. 
  • Position fit, leadership skills, and functional skills like design, coding, and people skills are checked here. 
  • In this round’s coding questions, an automated tool is used to evaluate.

You can also expect a couple of behavior-related questions in this round. At the end of the interview, the recruiter will set a date for you to take up some Amazon coding challenge questions.

For more details on Amazon phone questions and how to answer them, check out the Amazon Phone Interview Questions article.

2. The Amazon Coding Assignment

Depending on the role you’re applying to, the coding assignment happens either remotely or in person. For most developer positions, the coding assignment happens remotely. Considering the pandemic situation, Amazon decided that it would hold remote assignments monitored in real-time.

  • The Amazon coding challenge questions involve solving 1-2 coding problems within a stipulated time. It usually happens on a coding interview platform or a Google Doc. 
  • The hiring manager evaluates your approach to solving the problems and how you go about arriving at the solution. 
  • At the end of the assignment, expect a few questions about the concepts you employed to solve the problem(s). 

If your performance in the Amazon coding interview questions is satisfactory, a recruiter will get in touch with you to fix a date for the on-site interview. 

7-day Email Course: Interview Prep
Thank you for signing up for 7 Days Email Course!
Keep an eye on your inbox for the first email.
Oops! Something went wrong while submitting the form.

3. The Loop

Amazon’s on-site interview, known as the Loop, is the final phase in the hiring process. Getting through this stage is significantly challenging as recruiters assess you on many aspects before making a hiring decision. 

  • For the interview, the Hiring Manager creates a panel of 4-6 interviewers, and each interviewer is assigned one functional area and 1-2 leadership principles. One of them is a bar raiser, who is nominated by the recruiter, and this interviewer is outside the hiring team. 
  • The panel consists of SDM, Sr. Eng. Manager, principal engineers. For SDMs, program managers/product managers are also there. Each panel member is at least the same level as the interviewing level.

Landing a software engineer job at Amazon is hard, given its rigorous interview process. Nailing it requires the right strategy and direction. Our “FAANG Interview Tips” is a good place to start your Amazon technical interview prep.

Amazon Interview Process for ICs Vs. EMs

For the on-site rounds, there are some differences between interviews of ICs and EMs:

Interview Process for ICs

For ICs, in each round, they’d likely ask you Amazon coding challenge questions and behavioral questions in any of the following combinations: 

  • Two behavior and one coding/DSA question 
  • One behavior and one system design question
  • Three behavioral questions

In terms of questions asked to ICs at different levels,

  • L4 doesn’t get system design questions, and for them, there’s very little focus on behavior. For L4, the focus is on the basics like conflict, adversity, etc. 
  • Starting L5, you get at least one system design question. 
  • The system design and behavior bar is high L6 onwards. 
  • For domain-specific positions like DE, DSc, and Embedded, coding is half DSA and half domain.

Interview Process for EMs

For EMs, the phone screen mostly involves experience and behavior. For each round, one behavioral and one system design or three behavioral questions are asked. The bar for system design and behavior is high from L6 onwards, and coding becomes less important.

The loop typically consists of the following rounds:

  1. Coding round: This round involves solving 1-2 Amazon coding interview questions around algorithms and data structures. The extent of your problem-solving skills is assessed in this round. 
  2. Design round: Hiring managers evaluate your engineering design skills in this round. Your ability to design and work with scalable systems with low latency is assessed.  
  3. Behavioral round: Behavioral interviews at Amazon are based on the company’s 14 leadership principles. The behavioral round is essentially built to test if your attitude and personality traits align with the company’s vision and goals.   
  4. The bar-raiser round: Bar raisers are a group of handpicked employees trained to maintain the hiring bar at Amazon. Their primary role is to find the best candidates by assessing them against a set of predefined parameters. Bar raisers have a veto when recruiters make a hiring decision. If they deem you unfit for the role, you don’t get offered. 

Note: Amazon tends to focus more on behavioral and design interviews for senior positions and coding interviews for junior positions. Additionally, coding interviews don’t have a veto while hiring for senior positions but design interviews have a veto for junior positions. 

Different Levels at Amazon

Here’s a look at the levels at Amazon in Engineering and Tech PGM/Product Management, along with the job titles they stand for:

Amazon Coding Interview Questions

Amazon coding interview questions are focused on algorithms and data structures. Amazon doesn’t provide a question bank to interviewers, just guidelines. The interviewer asks questions about their experience. In the sections below, we look at Amazon coding interview questions from topics that feature in Amazon’s tech interview. 

Amazon Coding Interview Questions on Arrays

Arrays are a popular data structure around which questions are asked in technical interviews. Below are some common Amazon coding interview questions on arrays:

  1. Given: Array A of size N
    Task: Perform operations such as searching an element, inserting an element, and deleting an element by completing the functions. Also, all functions should return a boolean value.
  2. Given: Array A of size N
    Task: Print elements of A in an alternate order (starting from index 0)
  3. Task: Write a code to find the minimum and maximum element in an array
  4. Given: Array Arr of size N
    Task: Print the second largest element from the array
  5. Given: Array A of size N of integers.
    Task: Find the minimum and maximum elements in array
  6. Given: An unsorted array arr[] of size N
    Task: Rotate it by D elements (clockwise) 
  7. Given: A sorted array A of size N
    Task: Delete all duplicate elements from A
  8. Given: An unsorted array arr[] of n positive integers
    Task: Find the number of triangles that can be formed with three different arrays elements if the elements were lengths of the three sides of the triangle. 
  9. Given: An array A of positive integers
    Task: Find the leaders in the array (an element is a leader if it is greater than or equal to all the elements to its right) 
  10. Given: An array A of N elements
    Task: Find the minimum index-based distance between two elements, x, and y
  11. Given: An array A of N integers
    Task: Find any 3 elements in it such that A[i] < A[j] < A[k] and i < j < k
  12. Given: An array A of N elements
    Task: Find the majority element in the array (a majority element in an array A of size N is an element that appears more than N/2 times in the array)
  13. Given: A sorted array arr[] of distinct integers
    Task: Sort the array into a wave-like array and return it — arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5 ...
  14. Given: An array A[] of N positive integers
    Task: Write a code to find the maximum of j - i, subject to the constraint A[i] <= A[j]
  15. Given: An array nums[] of size N
    Task: Construct a Product Array P (of the same size N) such that P[i] is equal to the product of all the elements of nums except nums[i]
  16. Given: An array of size N and a range [a, b]
    Task: Partition the array around the range such that the array is divided into three parts:  All elements smaller than a come first; all elements in range a to b come next; all elements greater than b appear in the end
  17. Given: An array A of size N (the elements of the array are distinct and are sorted)
    Task: Find all pairs in the array that add up to a number K 
  18. Given: An array arr[] of N non-negative integers representing the height of blocks
    Task: If the width of each block is 1, write a code to calculate how much water can be trapped between the blocks during the rainy season
  19. Given: An array of integers
    Task: Find the inversion count in the array (the inversion count determines how far away the array is from being sorted) 
  20. Given: An array arr[] of N integers
    Task: Calculate the median

Amazon Coding Interview Questions on Strings

Strings are a popular data type used to represent text characters. Below are some Amazon coding interview questions on Strings to help you prepare for your Amazon tech interview: 

  1. Given: String S
    Task:
    Check if it is palindrome or not
  2. Given: Two strings a and b consisting of lowercase characters
    Task: Write a code to check whether the two strings are anagrams of each other
  3. Given: String S
    Task:
    Check if characters of the given string can be rearranged to form a palindrome 
  4. Given: String str
    Task: Convert the first letter of each word in the string to uppercase
  5. Given: String str containing only lower case alphabets
    Task: Sort it in lexicographically-descending order
  6. Given: Two strings, S1 and S2
    Task:
    Write a program to merge them alternatively — the first character of S1 with the first character of S2, and so on — till the end of the string
  7. Given: String S containing alphanumeric characters
    Task: Find out whether the string is a palindrome or not
  8. Given: String S
    Task: Reverse the string without reversing its individual words
  9. Task: Write a code to implement the function strstr. The function essentially takes two strings as arguments (s,x) and locates the occurrence of the string X in the string S 
  10. Given: Two strings A and B
    Task: Find if A is a subsequence of B
  11. Given: Two strings s1 and s2
    Task: Write a code to check if s2 is a rotated version of the string s1
  12. Given: Two strings of lowercase alphabets and a value K
    Task:
    Write a program function that tells if the two strings are K-anagrams of each other
  13. Given: Two strings A and B
    Task: Find the characters that are not common in the two strings
  14. Given: A string S consisting of lowercase Latin letters
    Task: Find the first non-repeating character in S
  15. Given: A string S
    Task:
    Find the length of the longest substring with all distinct characters
  16. Given: A string,
    Task: Find the longest substring that is a palindrome in linear time O(N).
  17. Given: A decimal number m
    Task:
    Convert it into a binary string and apply n iterations. In each iteration, 0 becomes 01, and 1 becomes 10. Find the kth (1-indexing) character in the string after nth iteration
  18. Given: Two binary strings A and B consisting of only 0s and 1s
    Task: Find the resultant string after adding the two strings
  19. Given: Two numbers as strings s1 and s2
    Task: Calculate their product
  20. Given: Two binary strings A and B
    Task: Find the product of two strings in decimal value

Amazon Coding Interview Questions on Sorting

Sorting is a crucial topic for coding interviews. Below are some Amazon coding interview questions on sorting algorithms. 

  1. Given: An array arr[] of size N
    Task:
    Check if it is sorted in non-decreasing order
  2. Given: A binary array A[] of size N
    Task:
    Arrange the array in increasing order
  3. Given: An array of size N containing only 0s, 1s, and 2s
    Task: Sort the array in ascending order
  4. Given: an integer N and a list arr
    Task:
    Sort the array using the bubble sort algorithm
  5. Given: An unsorted array of size N
    Task: Use selection sort to sort arr[] in increasing order
  6. Given: An array arr[], its starting position “low,” and its ending position “high.”
    Task: Implement the partition() and quickSort() functions to sort the array
  7. Given: An array arr[], its starting position l, and its ending position r
    Task: Sort the array using the merge sort algorithm
  8. Given: Two integer arrays A1[ ] and A2[ ] of size N and M, respectively
    Task: Sort the first array A1[ ] such that all the relative positions of the elements are the same as the elements in the second array A2[ ]
  9. Given: An integer array of which both the first half and second half are sorted
    Task: Write a code to merge the two sorted halves of the array into a single sorted array
  10. Given: An array arr of size n and an integer X
    Task: Find if there's a triplet in the array which adds up to an integer X
  11. Given: An array of n distinct elements
    Task: Find the minimum number of swaps required to sort the array in increasing order
  12. Given: An array A of integers
    Task: Find three numbers such that the sum of two elements equals the third element — return the triplet in a container result

Amazon Coding Interview Questions on Hashing

Amazon coding interview questions quite regularly include problems that employ hashing. Here are some sample Amazon coding interview questions on hashing: 

  1. Given: An NxN matrix M
    Task:
    Write a program to find the count of all the distinct elements common to all rows of matrix
  2. Given: Two arrays a1[0..n-1] of size n and a2[0..m-1] of size m
    Task: Write a code to check whether a2[] is a subset of a1[] or not
  3. Given: A set of N nuts of different sizes and N bolts of different sizes — there is a one-one mapping between nuts and bolts
    Task: Write a code to match the nuts and bolts
  4. Given: An array A[] of N positive integers, which can contain integers from 1 to P, where elements can be repeated or can be absent from the array
    Task: Write a code to count the frequency of all elements from 1 to N
  5. Given: Two arrays A and B of equal size N
    Task: Find if the given arrays are equal or not
  6. Given: An array of N integers
    Task: Find the first element that occurs K number of times
  7. Given: Two arrays A and B containing integers of size N and M
    Task:
    Write a program to find numbers that are present in the first array but not present in the second array
  8. Given: An array arr of N integers
    Task: Find the first non-repeating element 
  9. Given: An array of strings
    Task: Write a code to return all groups of strings that are anagrams
  10. Given: An array N with positive numbers
    Task: Write a code to find the largest subsequence from an array that contains elements that are Fibonacci numbers
  11. Given: An array of N integers, and an integer K
    Task:
    Find the number of pairs of elements in the array whose sum is equal to K
  12. Given: An integer array and a non-negative integer k
    Task: Count all distinct pairs with the difference equal to k —  A[ i ] - A[ j ] = k

Amazon Coding Interview Questions on Recursion

Recursion is an important concept in technical interviews and can be a tricky area to master. Here are some practice Amazon coding interview questions on recursion for your upcoming interview.

  1. Task: Write a code to print a sequence of numbers starting with N, where A[0] = N, without using a loop, in which  A[i+1] = A[i] - 5, until A[i] > 0. After that A[i+1] = A[i] + 5. Repeat it until A[i] = N
  2. Given: A round table of n persons
    Task: Write a code to find out in how many ways they can shake hands such that no two handshakes cross each other
  3. Given: n number of people in a circle and a number k, such that k-1 persons are skipped, and the kth person is eliminated
    Task: Write a code to figure out the safest place in the circle
  4. Given: A string s
    Task: Remove all its adjacent duplicate characters recursively
  5. Given: An image of size n*m, location of a pixel in the screen(sr, cc), and color nColor.
    Task:  Write a code to replace the color of a given pixel and all adjacent same-colored pixels with a new color, “nColor.”

Amazon Coding Interview Questions on Graphs and Greedy Algorithms

Graphs and Greedy Algorithms are extremely important concepts that you must master if you wish to ace Amazon’s technical interview. Here are some sample Amazon coding interview questions on Graphs. 

  1. Given: Adjacency list of a bidirectional graph
    Task: Write a code to return the adjacency list for each vertex
  2. Given: A directed graph
    Task: Write a code to perform breadth-first traversal of this graph starting from 0
  3. Given: A connected undirected graph
    Task: Write a program to perform depth-first traversal of the graph
  4. Given: A grid of size n*n filled with 0, 1, 2, 3
    Task: Check whether there is a path possible from the source to destination (you can traverse left, right, up, or down)
  5. Given: A square chessboard, the initial position of the Knight, and the position of a target
    Task: Write a code to find the minimum steps required by the knight to reach the target position
  6. Given: An adjacency list of a graph adj with V number of vertices and having 0-based index
    Task: Write a code to find whether the graph is bipartite or not
  7. Given: A 2D binary matrix A(0-based index) of dimensions NxM
    Task: Find the minimum number of steps required to reach from (0,0) to (X, Y)
  8. Given: A directed graph with V vertices (numbered from 0 to V-1) and E edges
    Task: Find the number of strongly connected components in the graph
  9. Given: A directed graph
    Task: Find if a vertex j is reachable from another vertex i for all vertex pairs (i, j) in the given graph
  10. Given: A weighted, undirected, and connected graph of V vertices and E edges
    Task: Write a code to find the sum of weights of the edges of the minimum spanning tree
  11. Given: Weights and values of N items
    Task: Put these items in a knapsack of capacity W to get the maximum total value in the knapsack
  12. Given: N activities with their start date and finish date in array start[ ] and end[ ]
    Task: Select the maximum number of activities that can be performed by a single person, assuming that a person can only work on a single activity in a given day
  13. Given: Arrival and departure times of all trains that reach a railway station
    Task: Find the minimum number of platforms required for the railway station such that no train is kept waiting
  14. Given: A set of N jobs, where each job “I” has a deadline and profit associated with it. Each job takes 1 unit of time to complete and only one job can be scheduled at a time. A profit can be earned if the job is completed before the deadline
    Task: Write a code to find the maximum profit earned and maximum number of jobs that can be done 

Mathematical Problems for the Amazon Interview

Amazon sometimes asks problems around mathematics, where you have to code the solution to a mathematical problem. Below are some such sample Amazon coding interview questions:

  1. Given: The first 2 terms A1 and A2 of an arithmetic series
    Task: Find the Nth term of the series
  2. Given: The first term and common ratio X and R of a GP series
    Task: Find the nth term of the series
  3. Given: Two non-zero integers N and M
    Task: Find the number closest to N and divisible by M. If there are more than one such number, then output the one having maximum absolute value
  4. Given: A 3-digit number
    Task: Find whether it is an Armstrong number or not (an Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself — for example, 371 is an Armstrong number, since 33 + 73 + 13 = 371)
  5. Given: A number N
    Task: Find if the sum of digits of N is a Palindrome number or not 
  6. Given: A positive number X
    Task: Find the largest Jumping Number smaller than or equal to X (a number is called Jumping Number if all adjacent digits in it differ by only 1. All single digit numbers are considered Jumping Numbers. For example: 7, 8987, and 4343456 are Jumping Numbers, but 796 and 89098 are not)
  7. Given: Binary number B
    Task: Find its decimal equivalent
  8. Given: Two numbers A and B
    Task: Find Kth digit at the right of AB
  9. Given: A number N
    Task: Write a code to reverse its digits
  10. Given: A number N
    Task: Check if a number is perfect or not (a number is said to be perfect if the sum of all its factors excluding the number itself is equal to the number)
  11. Given: A number N
    Task: Write a code to find the largest prime factor of that number
  12. Given: Two integers n and r
    Task: Find nCr (the answer may be very large, so calculate the answer modulo 109+7)
  13. Task: Write a program to calculate nPr — nPr represents n permutation r and the value of nPr is (n!) / (n-r)!
  14. Given: A positive integer,] N
    Task: Find the factorial of N
  15. Given: An array of N positive integers
    Task: Find GCD of all the array elements
  16. Given: N
    Task: Count all “a”(>=1) and “b”(>=0) that satisfy the condition a3 + b3 = N
  17. Given: Two numbers (n , m)
    Task: Write a code to find n√m (nth root of m)
  18. Given: A number N
    Task: Calculate the prime numbers up to N using Sieve of Eratosthenes
  19. Given: A positive integer N
    Task: Find the sum of all prime numbers between 1 and N(inclusive)
  20. Given: A string
    Task: Return the index of the first non-repeating character
  21. Given: a 2-D array of integers, where a -ve number is land and +ve number is water
    Task: Count the number of islands.
  22. Task: Find the minimum value in an unbalanced unsorted tree

Practice these Amazon coding interview questions and you’re well on your way to crack your Amazon interview!

Amazon Systems Design Interview Questions

Distributed systems design is an important component in the on-site interview. The design round is particularly important for senior developer and managerial positions. 

  • At junior levels, you’ll usually be asked no design questions. 
  • At intermediate level, you can expect module or API design questions. 
  • Lastly, at senior levels, you can expect system design questions.

Here are some Amazon coding interview questions pertaining to distributed and large-scale systems:

  1. Design an in-memory database system
  2. Design an IP blocking system
  3. Design a voting system, where people will cast their votes and the votes get added to corresponding candidates
  4. Design a system to find 100 top-selling products in a given time window
  5. Design an Amazon online bookstore, where users can view prices and make purchases
  6. Design a system where an office administrator knows how many people are present on each floor of the building, given that the building has 3 floors
  7. Design a system to upload images with tags — users would be able to visit and search for images by entering the tags
  8. Design a notification service that sends notifications to multiple devices
  9. Design a comprehensive workflow system that responds to pause/continue functions
  10. Design a scheduler service that can manage huge schedules with minimal latency 
  11. Design an Instagram or Tinder.
  12. Create a high level design of the black Jack video game
  13. Assuming no cloud services are available, how do you scale up a web server once its popularity increases.

For more details on Amazon system design questions and how to answer them, check out the Amazon System Design Interview Questions article. 

Amazon Behavioral Interview Questions

Apart from Amazon coding interview questions, you will have to answer some behavioral questions too. Amazon’s behavioral interview is starkly different from other FAANG companies. Behavior and leadership questions are very important at Amazon. The behavioral questions are also based on leadership principles:

  • At junior levels, learning and curiosity are important. 
  • On other levels, the leadership principles “disagree and commit”, “customer obsession”, and “hire and develop the best” is important. 

Some leadership principles like frugality are many times not covered. Evaluation is subjective and is based on honesty, integrity, scope of the problem. To get a feel of what sort of questions to expect, we’ve listed some for you below along with the leadership qualities they test: 

  • Ownership: Give an instance where you had to communicate that you were not able to meet your commitments. OR Tell me an instance where you had to push back a product release because of quality issues.
  • Customer obsession: When did you go above and beyond to meet a customer's needs? OR Give an instance when you had to take a customer’s stand in your organization and what happened?
  • Deliver results: Narrate a difficult project or a failed project. What happened and what would you do differently?
  • Disagree and commit: An instance where you disagreed with your manager and what happened?
  • Simplify and innovate: When you got a requirement to implement, how did you simplify it to make it generic?
  • Are right, a lot: Give me an instance, where you had to change your opinion/approach, which you strongly believed in.
  • Learn and be curious: Give an instance where you were assigned a task, but you didn’t know how to go about doing it. How did you go about it?
  • Hire and Develop the best: Did you hire someone who surpassed you?

Now that you have an idea of how leadership qualities are associated with behavioral questions, here are some more Amazon behavioral questions for practice:

  1. Tell us about a time a project you were working on went south. How did you manage the situation?
  2. Tell us about a time when your work-life balance was thrown off gear owing to a demanding project.
  3. Tell us about a time when you leveraged massive chunks of data to build a strategy. How did you execute it?
  4. Why do you want to work at Amazon? How do you think Amazon will impact your life in the coming years?
  5. What would be your stand if your supervisor asked you to do something outside the purview of the company’s policy?
  6. Tell us about a time when it was getting difficult to work with an uncooperative colleague.
  7. Tell us about a time when you apprised the entire team about crucial learnings that you derived while working on a project.

Learn about the 10 Key Behavioral Skills Required to Land a $500k Tech Job here.

Amazon Product Management/Tech PGM Interview Questions

Program managers usually report to a director or Sr. Eng. Manager. Some BUs have a director of Product Management, to whom the product managers report. Some BUs have product managers who report to Director SW Engg and in such cases, 1-3 product managers report to director SW Engg. 

Let us now look at some Amazon interview questions involving Product Management:

  1. Who is your customer and how do you learn about them?
  2. What customer insights did you use to get product direction?
  3. How many engineers do you work with? - Scope and risks
  4. What experience do you have working with finance/legal/sales/mktg - breadth
  5. An example of using data to make decisions
  6. What has been your best GTM and why did it work?
  7. Did you face a situation where you had to make a choice between two good options? – higher order consequences
  8. How do you take goals and ensure that the engg. Teams can deliver them?

Here are some Technical Product Management interview questions:

  1. Explain the most technically complex program you have managed.
  2. How do you manage risks? Did you ever take any calculated risks?
  3. How did you resolve disagreements between teams?
  4. How do you decide when to make a commitment?

Take a look at some more Amazon TPM interview questions here.

Scoring and Evaluating System at Amazon Interviews

After completing the Amazon interview process and answering the Amazon coding interview questions, you must wait for HR to contact you. Let's take a look at how Amazon's interviewers are evaluating you at the given time.

The scoring system involves each interviewer rating the interviewee for each assigned area: 

  • Very strong
  • Acceptable
  • Not acceptable
  • Strongly not acceptable

While filling in the score, they can’t see others’ scores.

Next, a debrief of all interviewers is held. During this debrief, the interviewers may change their scores. At the end of the discussion for hire, the HM and bar raiser have to agree. If they decide to hire, the level will be the same as interviewing for or lower. The level is finally decided by the HM and the recruiter.

While the questions at each level may be similar, the expectated outcomes are different at each level. So the levels can be decided by the quality of answers.

FAQs on Amazon Coding Interview Questions

Q1. How hard is the Amazon coding interview?

The Amazon coding interview is difficult regardless of whether you are a fresher or experienced professional. To weed out unqualified applicants, you'll be given a 2-hour Amazon coding challenge with two difficult questions.

Q2. What questions can be expected in an Amazon coding interview?

Some topics on which you can expect Amazon coding interview questions are: Arrays, Linked lists, Trees, Strings, and Dynamic programming.

Q3. What questions should be asked at the end of an Amazon interview?

Some questions you can ask the interviewer at Amazon are: What does a typical day look like for an employee in this role? How is success defined in this position? What’s the biggest challenge Amazon faces today?

Q4. How to crack the Amazon coding interview?

To prepare, you can spend time on Leetcode, prepare the fundamentals for your domain, and refresh your project's experience. Come up with some stories about your experience and link them to different leadership principles. During the interview, don’t take the interviewer seeking clarification as a negative. Ensure your technical communication while solving the Amazon coding interview questions is on point. In the end, when asked to ask questions, ask good, curious questions.

Q5. How many rounds are there in the Amazon interview process?

The Amazon interview process consists of 5 rounds, each lasting about an hour. The rounds are HR call or email round, online assessment, phone screening, video interviews consisting of Amazon coding interview questions, and an on-site interview, also known as the “Loop” interview. 

Are You Ready to Nail Your Next Coding Interview?

If you are looking for help and guidance on how to prepare for that big interview, consider Interview Kickstart

As pioneers in the field of technical interview prep, we have trained thousands of software engineers to crack the toughest coding interviews and land jobs at their dream companies, such as Google, Facebook, Apple, Netflix, Amazon, and more!

Sign up for our free webinar to learn more!


Recession-proof your Career

Recession-proof your Software Engineering Career

Attend our free webinar to amp up your career and get the salary you deserve.

Hosted By
Ryan Valles
Founder, Interview Kickstart
Accelerate your Interview prep with Tier-1 tech instructors
360° courses that have helped 14,000+ tech professionals
57% average salary hike received by alums in 2022
100% money-back guarantee*
Register for Webinar

Recession-proof your Career

Recession-proof your Software Engineering Career

Attend our free webinar to amp up your career and get the salary you deserve.

Hosted By
Ryan Valles
Founder, Interview Kickstart
Accelerate your Interview prep with Tier-1 tech instructors
360° courses that have helped 14,000+ tech professionals
57% average salary hike received by alums in 2022
100% money-back guarantee*
Register for Webinar

Attend our Free Webinar on How to Nail Your Next Technical Interview

Recommended Posts

closeAbout usWhy usInstructorsReviewsCostFAQContactBlogRegister for Webinar