Amazon Coding & Algorithms Interview Questions

Amazon Coding & Algorithms interview questions focus heavily on data structures, algorithmic problem solving, and clear on-the-spot implementation. What’s distinctive is the combination of speed and depth: interviewers evaluate correctness, time and space complexity, edge-case handling, and the candidate’s ability to communicate a stepwise approach under time pressure. Expect array/string manipulation, trees/graphs, hashing, dynamic programming, and occasional system- or design-lite prompts for senior roles, with behavioral ties to Amazon’s leadership principles sometimes woven into technical rounds. Typical loops begin with one or two timed phone screens followed by an onsite or virtual loop of multiple interviews that mix pure coding, design (for higher levels), and behavioral assessment; a bar-raiser may appear to ensure hiring standards. For effective interview preparation, practice timed coding problems across core topics, run mock interviews that force you to verbalize decisions, write clean, testable code, and rehearse concise STAR-style stories that highlight ownership and impact. Developing pattern recognition for problem types and routinely reviewing complexity and edge cases will make your responses faster, safer, and more persuasive.

233 Questions 1 Company08.11.2026
Showing 20 results
Role
Amazon logo
Amazon
Medium
Software EngineerSenior+

Find Paths Across a Weighted Binary Grid

Find Paths Across a Weighted Binary Grid Given an m by n binary grid, a cell with value 1 is traversable and 0 is blocked. Movement is allowed up, dow...

Coding & Algorithms
14
0
210 people solved
Jul 17, 2026
Amazon logo
Amazon
Hard
Software Engineer

Merge Overlapping Intervals with a Sweep

Merge Overlapping Intervals with a Sweep Implement merge_intervals(intervals) for closed integer intervals [start, end] with start <= end. Return thei...

Coding & Algorithms
1
0
12 people solved
Aug 11, 2026
Amazon logo
Amazon
Hard
Software Engineer

Minimize Replacements So Equal Product Values Are Contiguous

Minimize Replacements So Equal Product Values Are Contiguous You are given the quality value of each product in a line. In one operation, choose two d...

Coding & Algorithms
13
1
159 people solved
Jul 12, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+

Schedule Priority Jobs with Cooldowns

Schedule Priority Jobs with Cooldowns Implement a scheduler for recurring jobs: `text addJob(job_id, priority, cooldown) -> bool getJob() -> job_id or...

Coding & Algorithms
10
0
73 people solved
Jul 17, 2026
Amazon logo
Amazon
Easy
Software EngineerIntern

Find the Most Frequently Used Meeting Room

Find the Most Frequently Used Meeting Room Problem Implement mostBookedRoom(roomCount, meetings) -> roomId. Rooms are numbered 0 through roomCount - 1...

Coding & Algorithms
1
0
11 people solved
Aug 1, 2026
Amazon logo
Amazon
Easy
Software EngineerIntern

Compute the Minimum Number of Meeting Rooms

Compute the Minimum Number of Meeting Rooms Problem Implement minimumMeetingRooms(intervals) -> roomCount. Each meeting is a half-open interval [start...

Coding & Algorithms
0
0
11 people solved
Aug 1, 2026
Amazon logo
Amazon
Easy
Software EngineerIntern

Find the Lowest Common Ancestor in a Binary Tree

Find the Lowest Common Ancestor in a Binary Tree Problem Implement lowestCommonAncestor(left, right, root, first, second) -> nodeId. The binary tree h...

Coding & Algorithms
1
0
11 people solved
Aug 1, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+

Implement Multi-Player Tic-Tac-Toe

Implement Multi-Player Tic-Tac-Toe Implement a game class for an N by N board and K players. Each player has a distinct one-character printable mark. ...

Coding & Algorithms
4
0
49 people solved
Jul 17, 2026
Amazon logo
Amazon
Medium
Software Engineer

Resolve Package Dependencies with Cycle Detection

Implement buildOrder(dependencies, target), which returns the packages needed to build and install target in a valid dependency-first order. dependenc...

Coding & Algorithms
1
0
12 people solved
Jul 29, 2026
Amazon logo
Amazon
Medium
Software Engineer

Track Missing Package IDs from Out-of-Order Receipts

Packages have nonnegative integer IDs starting at 0, but they may be received out of order. Support two operations: - receive(id) records that package...

Coding & Algorithms
0
0
9 people solved
Aug 1, 2026
Amazon logo
Amazon
Hard
Software Engineer AI

Circular Drone Hub Delivery Route

A drone delivery network is laid out as a ring of n hubs, numbered 0, 1, ..., n - 1. Each hub is connected by a direct air corridor to its two neighbo...

Coding & Algorithms
5
0
60 people solved
Jun 28, 2026
Amazon logo
Amazon
Easy
Software EngineerIntern

Determine Whether One Person Can Attend Every Meeting

Determine Whether One Person Can Attend Every Meeting Problem Implement canAttendAllMeetings(intervals) -> canAttend. Each meeting is a half-open inte...

Coding & Algorithms
0
0
6 people solved
Aug 1, 2026
Amazon logo
Amazon
Easy
Software Engineer

Find the Single Value in a Sorted Array of Pairs

Find the Single Value in a Sorted Array of Pairs Problem Implement singleNonDuplicate(values) -> value. values is sorted in nondecreasing order. Exact...

Coding & Algorithms
1
0
16 people solved
Jun 22, 2026
Amazon logo
Amazon
Medium
Software EngineerNew Grad

Compute Edit Distance

Compute Edit Distance Given two strings, return the minimum number of single-character operations needed to transform the first string into the second...

Coding & Algorithms
41
1
345 people solved
Jul 15, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Compute the Median After Each Stream Insertion

Compute the median after every insertion into an integer stream without repeatedly sorting the full prefix. Practice maintaining balanced data structu...

Coding & Algorithms
2
0
25 people solved
May 29, 2026
Amazon logo
Amazon
Medium
Software EngineerSenior+ Locked

Find the Minimum Processing Rate to Meet a Deadline

Find the smallest integer processing rate that completes independent workloads before a deadline when unused hourly capacity cannot be shared. The pro...

Coding & Algorithms
2
0
27 people solved
May 29, 2026
Amazon logo
Amazon
Hard
Software EngineerSenior+

Implement a Half-Open Interval Range Module

Implement a Half-Open Interval Range Module Implement a module that tracks subsets of the real-number line using half-open intervals [left, right). Pr...

Coding & Algorithms
1
0
19 people solved
Jul 5, 2026
Amazon logo
Amazon
Medium
Software EngineerNew Grad

Solve tree and DP problems

This coding round contained two algorithm questions: 1. Deepest shared ancestor in a binary tree You are given the root of a binary tree and two ...

Coding & Algorithms
39
0
268 people solved
Oct 24, 2025
Amazon logo
Amazon
Hard
Software EngineerIntern

Return all valid word-break sentences

Given a string s and a dictionary of strings wordDict, insert spaces into s to form a sentence such that every token is in wordDict. Return all possib...

Coding & Algorithms
11
0
203 people solved
Jan 15, 2026
Amazon logo
Amazon
Easy
Data Engineer

Solve two string problems

You are asked to solve the following two coding problems. 1. Count unique Morse code translations You are given an array of lowercase English w...

Coding & Algorithms
7
0
110 people solved
Jan 24, 2026

Frequently Asked Questions

How difficult are Amazon Coding & Algorithms interview questions?
Amazon Coding & Algorithms interview questions typically range from medium to hard. Early screens and online assessments tend to include medium problems that test correctness, edge-case handling, and basic optimization, while onsite coding rounds push toward harder algorithmic challenges that require solid data-structure intuition, efficient designs, and careful complexity analysis. Interviewers evaluate how you reason through tradeoffs, communicate your approach, and iterate under time pressure. Preparing realistic timed practice, learning to explain constraints and invariants clearly, and polishing test-case coverage will help you reliably perform at the company’s expected difficulty level.
What does the Amazon interview process look like and where do Coding & Algorithms questions appear?
Coding and algorithmic problems appear throughout Amazon’s technical hiring funnel: they commonly start in the online assessment or phone screen and continue as core rounds during the onsite or virtual loop. Early stages focus on single-problem implementation and correctness, while later technical interviews assess algorithmic depth, optimizations, and robustness under follow-up prompts. Parallel rounds may cover system design or behavioral evaluations, but coding rounds are central for software-engineering roles and often factor heavily in hiring decisions. Expect interviews to probe both your code and your problem-solving rationale, with interviewers asking for clarifications, complexity analysis, and test cases.
How should I structure a preparation timeline for Amazon Coding & Algorithms interviews?
Plan a structured timeline that balances fundamentals, applied practice, and mock interviews. Over eight to twelve weeks you can build a strong foundation by reviewing core data structures and algorithm patterns, then transition into daily timed problem solving and focused practice on weak areas. Regularly simulate interview conditions with timed questions and live mock interviews to practice explanation and pacing. Reserve time near the end for targeted review of past mistakes, readability and testing habits, and a couple of full-loop mock interviews. Shorter intensive timelines can work, but consistency and deliberate feedback cycles accelerate readiness most effectively.
What key subtopics should I master for Coding & Algorithms interviews at Amazon?
Prioritize mastery of arrays and strings, trees and graphs (BFS/DFS, topological order), dynamic programming patterns, hashing and two-pointer techniques, heaps and priority queues, and common greedy and binary-search approaches. Understanding complexity analysis, tradeoffs between time and space, and practical implementation details like handling nulls, overflow, and edge cases is essential. Equally important are writing clean, modular code and communicating thought processes clearly while iterating from brute-force to optimized solutions. Practicing pattern recognition and learning to adapt known templates to novel problem constraints will cover most frequent question types.
What practical tips will help me stand out, and what common pitfalls should I avoid during Amazon Coding & Algorithms interviews?
Stand out by clarifying requirements up front, proposing a brute-force idea first, and then iterating toward optimizations while explaining complexity tradeoffs. Verbally walk through representative test cases, handle edge cases explicitly, and keep code readable with clear variable names and small helper functions. Manage time by setting mini-milestones: plan, code, test, and optimize. Common pitfalls include diving into code without a plan, neglecting to test edge cases, ignoring interviewer hints, and getting stuck on micro-optimizations early. Unless an interviewer permits it, avoid using external assistants during live interviews and focus on demonstrating your independent problem-solving skills.

Explore more Amazon Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Other categories at Amazon
Coding & Algorithms questions at other companies
Browse all