PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

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.

Questions
176
Company
1
Updated
...
176 Questions 1 Company
PLTCHK testimonial
PLTCHK

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

_The_TaNk_ testimonial
_The_TaNk_

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

Chris testimonial
ChrisSenior SWE, LinkedIn

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

sleepy33 testimonial
sleepy33

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

Jake testimonial
JakeSenior ML Engineer, Lyft

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

nuggetlord testimonial
nuggetlord

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

Carlos testimonial
CarlosFull Stack, Shopify

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

boba.tea.vibes testimonial
boba.tea.vibes

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

Andy testimonial
AndySWE-II, Google

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

couchpotato99 testimonial
couchpotato99

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

Shruti testimonial
ShrutiData Engineer, Salesforce

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

midnightramen testimonial
midnightramen

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

Bianca testimonial
BiancaFrontend Eng, Figma

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

tambrahm007 testimonial
tambrahm007

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."

toa testimonial
toa

"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."

PLTCHK testimonial
PLTCHK

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

_The_TaNk_ testimonial
_The_TaNk_

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

Chris testimonial
ChrisSenior SWE, LinkedIn

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

sleepy33 testimonial
sleepy33

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

Jake testimonial
JakeSenior ML Engineer, Lyft

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

nuggetlord testimonial
nuggetlord

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

Carlos testimonial
CarlosFull Stack, Shopify

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

boba.tea.vibes testimonial
boba.tea.vibes

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

Andy testimonial
AndySWE-II, Google

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

couchpotato99 testimonial
couchpotato99

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

Shruti testimonial
ShrutiData Engineer, Salesforce

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

midnightramen testimonial
midnightramen

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

Bianca testimonial
BiancaFrontend Eng, Figma

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

tambrahm007 testimonial
tambrahm007

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."

toa testimonial
toa

"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."

Showing 20 results
Role
Amazon logo
Amazon
Medium
Software Engineer

Find Valid IP Addresses in Files

You are given an absolute or relative path to a directory on the local file system. Write a program that recursively traverses every subdirectory unde...

Coding & Algorithms
33
0
263 people solved
Apr 28, 2026
Amazon logo
Amazon
Medium
Software Engineer

Implement Cache and Rotate Matrix

Solve the following two independent coding tasks. Task 1: Implement an LRU Cache Design a data structure LRUCache that stores integer keys and integer...

Coding & Algorithms
2
0
40 people solved
Apr 20, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Build the Largest Available Sequence

You are given an integer array values, a binary string state of the same length, and an integer m such that 0 <= m <= values.length. Build a sequence ...

Coding & Algorithms
4
0
66 people solved
Apr 14, 2026
Amazon logo
Amazon
Hard
Machine Learning Engineer

Implement Optimal Bucket Batching

You are given an array lengths of K document lengths and an integer G representing the number of available GPUs. A batch is assigned to one GPU, and e...

Coding & Algorithms
1
0
20 people solved
Apr 27, 2026
Amazon logo
Amazon
Medium
Software Engineer

Implement Cache and Count Components

You are asked to solve two coding problems. Problem 1: Implement an LRU Cache Design a data structure that supports a fixed-capacity least-recently-us...

Coding & Algorithms
3
0
47 people solved
Mar 7, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Answer two coding questions (SQL and DP)

Solve the following two coding tasks. Problem A (SQL) You are given a table: Employee(id INT, salary INT) Write a query that returns the second highes...

Coding & Algorithms
19
0
169 people solved
Feb 12, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Find max equal-frequency block count for each prefix

Given a string S of length n (e.g., uppercase letters), for every prefix P = S[0..i] (for i = 0..n-1), compute the maximum integer k such that: - The ...

Coding & Algorithms
21
0
178 people solved
Feb 12, 2026
Amazon logo
Amazon
Hard
Software Engineer

Evaluate IP Access Rules

You are given a list of IPv4 access-control rules. Each rule consists of: - an action: allow or deny - a CIDR block such as 192.168.0.0/16 You are als...

Coding & Algorithms
6
0
87 people solved
Feb 17, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Find Longest Activatable Server Streak

You are given a binary array serverStates, where 1 means a server is currently on and 0 means it is off. You may turn on at most k currently off serve...

Coding & Algorithms
2
0
29 people solved
Apr 15, 2026
Amazon logo
Amazon
Hard
Software Engineer

Count unique Morse-code word transformations

Given an array of lowercase strings words. Each letter 'a' to 'z' has a corresponding Morse code string (standard 26-letter mapping). A word’s transfo...

Coding & Algorithms
4
0
51 people solved
Jan 15, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Implement a Worker Hours Register

Implement an in-memory WorkHoursRegister system for contract workers. The system tracks office entry and exit events, completed work time, promotions,...

Coding & Algorithms
2
0
19 people solved
Feb 14, 2026
Amazon logo
Amazon
Hard
Software Engineer

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
3
0
55 people solved
Jan 15, 2026
Amazon logo
Amazon
Medium
Software Engineer

Maximize weighted subsequence pairs with wildcards

You are given a string s of length n consisting only of characters '0', '1', and '!'. Each '!' can be replaced by either '0' or '1'. For the final bin...

Coding & Algorithms
112
0
1007 people solved
Jan 27, 2026
Amazon logo
Amazon
Medium
Software Engineer Locked

Find when failures started in log stream

You are given an array of log entries sorted by timestamp ascending. Each log entry contains: - timestamp (monotonic increasing) - status ∈ {OK, FAIL}...

Coding & Algorithms
3
0
63 people solved
Jan 22, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Maximize protected population and bitwise AND

You are given two independent coding problems. Problem 1: Maximize protected population after moving units There are n cities in a line (indexed 1..n)...

Coding & Algorithms
14
0
147 people solved
Feb 12, 2026
Amazon logo
Amazon
Hard
Software Engineer

Solve Two Array Optimization Problems

This online assessment included two coding problems. Problem 1: Maximize protected city population You are given: - an integer n - an array population...

Coding & Algorithms
20
1
258 people solved
Apr 10, 2026
Amazon logo
Amazon
Medium
Software Engineer

Find a valid dependency order

You are given n tasks labeled from 0 to n - 1 and a list of dependency pairs dependencies, where each pair [a, b] means task b must be completed befor...

Coding & Algorithms
6
0
73 people solved
Feb 15, 2026
Amazon logo
Amazon
Hard
Software Engineer Locked

Minimize time for two handlers

You are given a sequence of jobs that must be processed in the given order. There are exactly two handlers, and each job must be assigned to one of th...

Coding & Algorithms
6
0
83 people solved
Apr 7, 2026
Amazon logo
Amazon
Medium
Software Engineer

Solve Two OA Algorithm Problems

The post describes two separate coding questions from an online assessment: 1. Greedy deletion by minimum value Given an integer array nums, repeate...

Coding & Algorithms
2
0
29 people solved
Jan 8, 2026
Amazon logo
Amazon
Easy
Software Engineer

Find Unique Target-Sum Pairs

Given an integer array nums and an integer target, return all unique pairs of values whose sum equals target. Requirements: - Each returned pair shoul...

Coding & Algorithms
0
0
1 people solved
May 2, 2026
Previous12...9Next
Powered by AI
Try

Popular Categories

SQL
Share & Earn

Get 3 Days Free Premium

Post about PracHub on social media and earn a free trial.

Submit Post
Daily Quest

Sign in to start earning XP — every problem counts!

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.