Amazon Coding Interview Questions

We track 1831 coding questions asked at Amazon, tagged with the algorithms and concepts they test. The most common: Array, String, Hash Table, Dynamic Programming, Math.

Browse all 1831 Amazon questions →

Concept mix

Each question's weight is split evenly across its concepts, so the shares sum to 100%.

How many questions involve each concept

Share of all 1831 tracked Amazon questions that touch each concept. Questions usually involve several, so these overlap.

Where Amazon differs from the average company

Concept weight at Amazon relative to the average across all companies we track. Green means Amazon leans on it harder than most.

Amazon specialties

Concepts that show up at Amazon but are rarely asked elsewhere. They are easy to get blindsided by.

Difficulty mix

Level split of the 1831 tracked Amazon questions.

  • Junior27% (499)
  • Mid/Senior55% (1003)
  • Staff18% (329)

Every concept in Amazon interviews

ConceptQuestions% of questionsShare of mix
Array100654.9%19.5%
String39821.7%8.6%
Hash Table38020.8%6.1%
Dynamic Programming28315.5%5.7%
Math28015.3%6.4%
Sorting27515.0%4.1%
Greedy23112.6%3.9%
Depth-First Search18510.1%2.6%
Binary Search1819.9%2.9%
Breadth-First Search1498.1%2.1%
Two Pointers1407.6%2.5%
Matrix1367.4%2.2%
Tree1347.3%1.9%
Prefix Sum1276.9%2.2%
Heap (Priority Queue)1186.4%1.5%
Binary Tree1136.2%1.6%
Stack1075.8%1.8%
Bit Manipulation1065.8%2.2%
Simulation1015.5%1.9%
Sliding Window915.0%1.5%
Counting804.4%1.1%
Graph Theory794.3%1.1%
Database703.8%4.0%
Design643.5%0.9%
Linked List623.4%1.5%
Backtracking593.2%1.1%
Union-Find482.6%0.6%
Enumeration452.5%0.8%
Monotonic Stack382.1%0.5%
Divide and Conquer372.0%0.5%
Recursion362.0%0.7%
Number Theory341.9%0.5%
Ordered Set341.9%0.4%
Queue291.6%0.4%
Binary Search Tree281.5%0.4%
Trie261.4%0.4%
Segment Tree231.3%0.3%
Memoization211.1%0.3%
Combinatorics181.0%0.3%
Topological Sort170.9%0.2%
Geometry160.9%0.3%
Hash Function160.9%0.2%
String Matching160.9%0.3%
Shortest Path150.8%0.2%
Binary Indexed Tree140.8%0.2%
Bitmask130.7%0.1%
Data Stream120.7%0.1%
Game Theory120.7%0.2%
Monotonic Queue110.6%0.1%
Brainteaser100.5%0.2%
Rolling Hash100.5%0.1%
Counting Sort90.5%0.1%
Doubly-Linked List90.5%0.1%
Merge Sort70.4%0.1%
Bucket Sort60.3%0.1%
Randomized60.3%0.1%
Sweep Line50.3%0.1%
Interactive40.2%0.1%
Quickselect40.2%0.0%
Minimum Spanning Tree30.2%0.0%
Suffix Array30.2%0.0%
Eulerian Circuit20.1%0.0%
Iterator20.1%0.0%
Probability and Statistics20.1%0.0%
Radix Sort20.1%0.0%
Strongly Connected Component20.1%0.0%
Biconnected Component10.1%0.0%
Reservoir Sampling10.1%0.0%
Shell10.1%0.1%
Sort10.1%0.0%

Practice a Amazon interview

Take a realistic AI-led mock interview with questions Amazon actually asks, with live voice and real feedback.

Start a mock interview

Your first interview is free · no credit card required