Amazon Interview Prep (SDE-1 / SDE-2 / SDE-3)

Amazon runs the most behaviourally weighted loop in big tech. Coding matters, but Leadership Principles are not a soft round you coast through — a bar raiser who is unconvinced by your stories can sink an otherwise strong loop.

For SDE-2 and above the loop adds system design and an object-oriented design round. Design answers are graded on scalability, availability, and whether you volunteer trade-offs. Amazon cares unusually much about operational excellence: monitoring, failure modes, and blast radius belong in your answer before the interviewer asks.


Interview Process

Stage Duration Focus
Online Assessment ~105 min 2 coding problems + work simulation
Phone Screen 45-60 min 1-2 DSA problems + 1-2 LP questions
Onsite: Coding 1 60 min DSA + LP questions in the same round
Onsite: Coding 2 60 min DSA + LP questions
Onsite: System Design 60 min SDE-2 and above
Onsite: Object-Oriented Design 60 min Class modelling, extensibility
Bar Raiser 60 min Leadership Principles, can veto the loop

Every round includes LP questions, not just the bar raiser. Expect two to three behavioural questions even inside a coding round, so budget time accordingly. The bar raiser is from outside the hiring team and holds veto power — their job is to protect the hiring bar, not to fill the role.


What Amazon Actually Tests

Derived from 2011 reported Amazon-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 536 27%
Medium 1087 54%
Hard 388 19%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Arrays & Hashing 406 20%
2 Dynamic Programming 271 13%
3 Trees 194 10%
4 Sliding Window & Two Pointers 162 8%
5 Graphs 141 7%
6 Intervals, Greedy & Sorting 135 7%
7 Strings 134 7%
8 Binary Search 122 6%
9 Math & Bit Manipulation 108 5%
10 Heap / Priority Queue 87 4%

Amazon Signature Problems

These rank high on Amazon’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Reorganize String Heap + Greedy Medium 18 of 142 Solve →
2 Lowest Common Ancestor of a Binary Tree Lowest Common Ancestor + Binary Lifting Medium 19 of 142 Solve →
3 Copy List with Random Pointer Linked List Medium 17 of 142 LeetCode →
4 Fruit Into Baskets Sliding Window Medium 13 of 142 Solve →
5 Analyze User Website Visit Pattern Sorting + Hash Table Medium 4 of 142 LeetCode →
6 N-Queens Algorithm X + Backtracking Hard 16 of 142 Solve →
7 Capacity To Ship Packages Within D Days Binary Search Medium 17 of 142 Solve →
8 Identify the Largest Outlier in an Array Enumeration + Counting Medium 4 of 142 LeetCode →
9 Valid Sudoku Matrix + Hash Table Medium 16 of 142 Solve →
10 Binary Tree Right Side View Binary Tree + BFS Medium 14 of 142 Solve →
11 All Nodes Distance K in Binary Tree Binary Tree + BFS Medium 15 of 142 LeetCode →
12 Binary Tree Level Order Traversal Binary Tree + BFS Medium 14 of 142 Solve →
13 Odd Even Linked List Linked List Medium 10 of 142 Solve →
14 Concatenated Words Trie + DFS Hard 2 of 142 LeetCode →

If you are short on time, these carry more Amazon-specific signal per hour than the universal top-100 lists.


Reported in the Last Six Months

The recency-filtered slice of Amazon’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.

# Problem Pattern Difficulty Link
1 Two Sum Hash Table + Array Easy Solve →
2 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
3 Best Time to Buy and Sell Stock DP Easy Solve →
4 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
5 LRU Cache Doubly Linked List + Design Medium Solve →
6 Add Two Numbers Linked List Medium Solve →
7 Number of Islands Union-Find + BFS Medium Solve →
8 3Sum Two Pointers Medium Solve →
9 Group Anagrams Sorting + Hash Table Medium Solve →
10 Median of Two Sorted Arrays Divide and Conquer + Binary Search Hard Solve →
11 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
12 Course Schedule DAG + Topological Sort Medium Solve →
13 Merge Intervals Quicksort Medium Solve →
14 Koko Eating Bananas Binary Search Medium Solve →
15 Palindrome Number Math Easy Solve →

System Design (HLD) Problems Asked at Amazon

# Problem Difficulty Link
1 URL Shortener Intermediate Read →
2 Chat System (WhatsApp) Intermediate Read →
3 E-commerce Platform Advanced Read →
4 Cart System Intermediate Read →
5 Rate Limiter Beginner Read →
6 Notification System Intermediate Read →
7 Distributed Job Scheduler Advanced Read →
8 Distributed Key-Value Store Advanced Read →
9 Metrics and Monitoring System Intermediate Read →
10 Ad Click Aggregation Advanced Read →

LLD / Machine Coding Problems Asked at Amazon

Amazon’s OOD round asks you to model a system in classes and then extend it. The interviewer will add a requirement halfway through specifically to test whether your design absorbs change.

# Problem Difficulty Link
1 Parking Lot Beginner Read →
2 Music Player Intermediate Read →
3 Inventory Management Intermediate Read →
4 Order Management System Intermediate Read →
5 Library Management Beginner Read →
6 Elevator System Intermediate Read →

DSA Problems Asked at Amazon

83 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Amazon’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. Showing the top 14 of 15 on the list.

# Problem Pattern Difficulty Link
1 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
2 3Sum Two Pointers Medium Solve →
3 Container With Most Water Greedy + Two Pointers Medium Solve →
4 Merge Sorted Array Two Pointers Easy Solve →
5 Fruit Into Baskets Sliding Window Medium Solve →
6 Remove Duplicates from Sorted Array Two Pointers Easy Solve →
7 Next Permutation Two Pointers Medium Solve →
8 Minimum Window Substring Sliding Window Hard Solve →
9 Sort Colors Bubble Sort + Quicksort Medium Solve →
10 Move Zeroes Two Pointers Easy Solve →
11 Longest Repeating Character Replacement Sliding Window Medium Solve →
12 Merge Strings Alternately Two Pointers Easy Solve →
13 4Sum Two Pointers Medium Solve →
14 Rotate Array Two Pointers Medium Solve →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 14 on the list.

# Problem Pattern Difficulty Link
15 Two Sum Hash Table + Array Easy Solve →
16 Rotting Oranges BFS Medium Solve →
17 Subarray Sum Equals K Prefix Sum Medium Solve →
18 Palindrome Number Math Easy Solve →
19 Product of Array Except Self Prefix Sum Medium Solve →
20 Spiral Matrix Simulation + Matrix Medium Solve →
21 Rotate Image Matrix + Math Medium Solve →
22 Reverse Integer Math Medium Solve →
23 First Missing Positive Hash Table + Array Hard Solve →
24 Identify the Largest Outlier in an Array Enumeration + Counting Medium LeetCode →
25 Create Hello World Function Implementation Easy LeetCode →
26 Valid Sudoku Matrix + Hash Table Medium Solve →
27 Contains Duplicate Sorting + Hash Table Easy Solve →
28 Recyclable and Low Fat Products Database Easy LeetCode →

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. All 12 on the list.

# Problem Pattern Difficulty Link
29 Trapping Rain Water Monotonic Stack + Two Pointers Hard Solve →
30 Best Time to Buy and Sell Stock DP Easy Solve →
31 Maximum Subarray Divide and Conquer + DP Medium Solve →
32 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →
33 Jump Game Greedy + DP Medium Solve →
34 House Robber DP Medium Solve →
35 Climbing Stairs Memoization + DP Easy Solve →
36 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
37 Unique Paths Combinatorics + DP Medium Solve →
38 Pascal’s Triangle DP Easy Solve →
39 Jump Game II Greedy + DP Medium Solve →
40 Best Time to Buy and Sell Stock II Greedy + DP Medium Solve →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 8 on the list.

# Problem Pattern Difficulty Link
41 Median of Two Sorted Arrays Divide and Conquer + Binary Search Hard Solve →
42 Koko Eating Bananas Binary Search Medium Solve →
43 Search in Rotated Sorted Array Binary Search Medium Solve →
44 Find First and Last Position of Element in Sorted Array Binary Search Medium Solve →
45 Find Peak Element Binary Search Medium Solve →
46 Capacity To Ship Packages Within D Days Binary Search Medium Solve →
47 Single Element in a Sorted Array Binary Search Medium Solve →
48 Search a 2D Matrix Binary Search Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 6 on the list.

# Problem Pattern Difficulty Link
49 Reorganize String Heap + Greedy Medium Solve →
50 Merge k Sorted Lists Tournament Sort + Merge Sort Hard Solve →
51 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →
52 Task Scheduler Heap + Greedy Medium Solve →
53 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
54 Meeting Rooms II Prefix Sum + Heap Medium Solve →

Graphs

Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 5 on the list.

# Problem Pattern Difficulty Link
55 Number of Islands Union-Find + BFS Medium Solve →
56 Course Schedule DAG + Topological Sort Medium Solve →
57 Longest Consecutive Sequence Union-Find Medium Solve →
58 Word Ladder Bidirectional Search + BFS Hard Solve →
59 Course Schedule II Topological Sort + Graph Medium Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 5 on the list.

# Problem Pattern Difficulty Link
60 Lowest Common Ancestor of a Binary Tree Lowest Common Ancestor + Binary Lifting Medium Solve →
61 Sliding Window Maximum Range Query + Monotonic Queue Hard Solve →
62 Largest Rectangle in Histogram Range Query + Monotonic Stack Hard Solve →
63 Binary Tree Maximum Path Sum DP on Trees + Binary Tree Hard Solve →
64 Binary Tree Right Side View Binary Tree + BFS Medium Solve →

Backtracking

Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 4 on the list.

# Problem Pattern Difficulty Link
65 Letter Combinations of a Phone Number Backtracking Medium Solve →
66 Word Search Backtracking + DFS Medium Solve →
67 Subsets Backtracking + Bit Manipulation Medium Solve →
68 N-Queens Algorithm X + Backtracking Hard Solve →

Design (Coding)

Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 4 on the list.

# Problem Pattern Difficulty Link
69 LRU Cache Doubly Linked List + Design Medium Solve →
70 Find Median from Data Stream Data Stream + Design Hard Solve →
71 Insert Delete GetRandom O(1) Randomized + Design Medium LeetCode →
72 Min Stack Design + Stack Medium Solve →

Linked List

Pointer surgery under time pressure. Draw the nodes before you write the reassignments. All 4 on the list.

# Problem Pattern Difficulty Link
73 Add Two Numbers Linked List Medium Solve →
74 Copy List with Random Pointer Linked List Medium LeetCode →
75 Merge Two Sorted Lists Linked List Easy Solve →
76 Reverse Linked List Linked List Easy Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 4 on the list.

# Problem Pattern Difficulty Link
77 Group Anagrams Sorting + Hash Table Medium Solve →
78 Valid Anagram Sorting + Hash Table Easy Solve →
79 Analyze User Website Visit Pattern Sorting + Hash Table Medium LeetCode →
80 Roman to Integer Math + Hash Table Easy Solve →

Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 3 on the list.

# Problem Pattern Difficulty Link
81 Longest Palindromic Substring Manacher + Two Pointers Medium Solve →
82 Longest Common Prefix Trie Easy Solve →
83 Word Break Brute-Force Search + Memoization Medium Solve →

Amazon’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Sliding Window & Two Pointers Very High 15 (17%) Longest Substring Without Repeating Characters, 3Sum, Container With Most Water
2 Arrays & Hashing High 14 (16%) Two Sum, Rotting Oranges, Subarray Sum Equals K
3 Dynamic Programming High 12 (13%) Trapping Rain Water, Best Time to Buy and Sell Stock, Maximum Subarray
4 Binary Search Medium-High 8 (9%) Median of Two Sorted Arrays, Koko Eating Bananas, Search in Rotated Sorted Array
5 Heap / Priority Queue Medium-High 6 (7%) Reorganize String, Merge k Sorted Lists, Top K Frequent Elements
6 Graphs Medium-High 5 (6%) Number of Islands, Course Schedule, Longest Consecutive Sequence
7 Trees Medium 5 (6%) Lowest Common Ancestor of a Binary Tree, Sliding Window Maximum, Largest Rectangle in Histogram
8 Backtracking Medium 4 (4%) Letter Combinations of a Phone Number, Word Search, Subsets
9 Design (Coding) Medium 4 (4%) LRU Cache, Find Median from Data Stream, Insert Delete GetRandom O(1)
10 Linked List Medium 4 (4%) Add Two Numbers, Copy List with Random Pointer, Merge Two Sorted Lists

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Sliding Window & Two Pointers, Arrays & Hashing, Dynamic Programming covers the bulk of what Amazon actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Leadership Principles Questions

# Question
1 Tell me about a time you had to deliver with incomplete information. (Bias for Action)
2 Tell me about the most complex problem you have solved. (Dive Deep)
3 Tell me about a time you disagreed with your manager. (Have Backbone, Disagree and Commit)
4 Tell me about a time you took on something outside your responsibilities. (Ownership)
5 Tell me about a time you failed. What did you learn? (Learn and Be Curious)
6 Tell me about a time you simplified a process. (Invent and Simplify)
7 Tell me about a time you went beyond what a customer asked for. (Customer Obsession)
8 Tell me about a time you had to make a decision with a tight deadline and no data.
9 Tell me about a time you raised the bar for your team. (Insist on the Highest Standards)
10 Tell me about a time you had to deliver more with fewer resources. (Frugality)

Write two STAR stories per principle and never reuse one across rounds — interviewers compare notes. Quantify the result in every story. “Reduced p99 latency from 1.2s to 180ms” lands; “improved performance significantly” does not.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Sliding Window & Two Pointers (part 1) Longest Substring Without Repeating Characters, 3Sum, Container With Most Water
2 Sliding Window & Two Pointers (part 2) Merge Sorted Array, Fruit Into Baskets, Remove Duplicates from Sorted Array
3 Arrays & Hashing (part 1) Two Sum, Rotting Oranges, Subarray Sum Equals K
4 Arrays & Hashing (part 2) Palindrome Number, Product of Array Except Self, Spiral Matrix
5 Dynamic Programming (part 1) Trapping Rain Water, Best Time to Buy and Sell Stock, Maximum Subarray
6 Dynamic Programming (part 2) Generate Parentheses, Jump Game, House Robber
7 Binary Search Median of Two Sorted Arrays, Koko Eating Bananas, Search in Rotated Sorted Array
8 Heap / Priority Queue Reorganize String, Merge k Sorted Lists, Top K Frequent Elements
9 Graphs Number of Islands, Course Schedule, Longest Consecutive Sequence
10 Trees Lowest Common Ancestor of a Binary Tree, Sliding Window Maximum, Largest Rectangle in Histogram
11 Backtracking Letter Combinations of a Phone Number, Word Search, Subsets
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Amazon Interviews

  1. LP answers decide the loop. Prepare 12-15 STAR stories with real numbers before you touch LeetCode. Candidates with strong code and vague stories get rejected routinely.
  2. Use “I”, not “we”. Amazon interviewers are trained to probe for your individual contribution. If every sentence is “we decided”, they cannot score you.
  3. Volunteer operational readiness. Monitoring, alerting, runbooks, blast radius, graceful degradation. Design answers that stop at the happy path read as junior here.
  4. Quantify the design. Back-of-envelope QPS, storage, and bandwidth. Amazon operates at a scale where the numbers change the architecture, and they want to see you notice.
  5. Address failure modes explicitly. What happens when a downstream service dies? How do retries avoid a thundering herd? What is the dead-letter strategy?
  6. Expect LP questions inside coding rounds. Do not burn all 60 minutes on the algorithm. Leave 10-15 minutes for the behavioural part.
  7. The OOD round is not system design. It is classes, interfaces, and extensibility. Practice modelling with a requirement change thrown in at minute 30.

Other Company Prep