Amazon Software Engineer Coding & Algorithms Interview Questions
Practice 177 real Coding & Algorithms interview questions for Software Engineer roles at Amazon.

"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"

"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"

"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."

"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."

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

"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."

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

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

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

"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."

"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."

"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."

"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."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"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."
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...
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...
Add One Source to Minimize Grid Inconvenience
Add One Source to Minimize Grid Inconvenience Implement min_max_inconvenience(grid). grid is a non-empty rectangular matrix containing 0 and 1. A cell...
Find a Maximum-Sum Window in a Sparse Array
Find a Maximum-Sum Window in a Sparse Array An integer array is represented by constant-value segments instead of individual elements. Each segment [s...
Implement Regular Expression Matching
Implement Regular Expression Matching Determine whether an entire input string matches a pattern containing lowercase letters and two special symbols:...
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...
Unify Stock-Trading Profit Variants
Unify Stock-Trading Profit Variants Given daily stock prices, return the maximum profit when you may complete at most max_transactions buy-then-sell t...
Find Two-Word Compound Words
Given a list of unique lowercase words, return every word that can be formed by concatenating exactly two other words from the same list. For each com...
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...
Find the Minimum Processing Rate to Meet a Deadline
Find the Minimum Processing Rate to Meet a Deadline You have several independent workloads. During each hour, a worker chooses one workload and proces...
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 ...
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...
Compute the Median After Each Stream Insertion
Compute the Median After Each Stream Insertion Given a stream of integers, return the median after each value is inserted. For an odd number of observ...
Minimum Path Length Through a Grid With One Allowed Cell Conversion
You are given an m x n grid grid where every cell holds either 1 (an open cell you may stand on) or 0 (a blocked cell). You start at the top-left cell...
Solve Three Algorithm Variants
You are given three independent coding problems. For each one, describe and implement an efficient solution. 1. Generate queue arrangements - You a...
Minimize Circular Redistribution Cost
This question evaluates algorithmic problem-solving skills in array manipulation, circular data structures, load balancing, and cost optimization whil...
Replace Delimited Tokens in a String
This question evaluates string parsing, token recognition, and dictionary lookup competencies for robust text replacement, including handling malforme...
Inventory Allocation by Bid Priority
This question assesses simulation and priority-queue design skills, requiring careful implementation of tiered, round-robin resource allocation under ...
Leaf Domain Cumulative Scores
Leaf Domain Cumulative Scores A search system assigns an integer score to individual domain names. Domains form a hierarchy based on their dot-separat...
Maximize Value Under a Budget
This question evaluates combinatorial optimization and algorithm design skills for resource-constrained selection problems, focusing on concepts exemp...