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."
Implement Cache and Count Components
You are asked to solve two independent coding problems in this session, each followed by a short discussion. This mirrors a 60-minute Amazon SDE codin...
Compute rightmost-smaller delay times
Given an integer array priorities, define delay[i] as the distance to the rightmost index j > i such that priorities[j] < priorities[i]; if no such in...
Find earliest time password becomes irrecoverable
You are given a password string of length n and an attack order array attackOrder[1..n], a permutation of 1..n. At second i (1-indexed), the virus rep...
Find minimum days to deliver all orders
You manage N delivery centers labeled 1..N and an array orderCityList where each element is the destination city of one order (city IDs are in 1..N). ...
Implement autocomplete with top-K suggestions
Implement an autocomplete component that, given a history of query strings with frequencies, returns the top K suggestions for an input prefix in real...
Implement tree left/right views via BFS and DFS
Given a binary tree, output the left view and right view: for each depth, the first node visible from the left and the first node visible from the rig...
Select maximum tasks before deadlines
Select maximum tasks before deadlines You are given a set of tasks, each with a positive duration and a deadline (lastDay). You may schedule tasks in ...
Place items into earliest fitting bins
Place items into earliest fitting bins You are given k items with sizes items[0..k-1] and n bins with initial capacities caps[0..n-1]. Process items i...
Implement a formatted shell script output
Implement a formatted shell script output Write a shell script named script.sh that is invoked as: ./script.sh <username> <path_of_file>. It must prin...
Validate 9x9 grid in one pass
Validate 9x9 grid in one pass Given a partially filled 9x9 board using digits '1'–'9' and '.' for empty cells, determine whether the current configura...
Find all cells reachable by downhill flow
Problem You are given an m x n grid heights, where heights[r][c] is the elevation of cell (r, c). A drop of water is placed at a starting cell start =...
Merge overlapping intervals
Merge overlapping intervals Given a list of half-open numeric intervals [start, end), merge all overlapping or contiguous intervals and return a list ...
Design 2D DP on a DAG
Design 2D DP on a DAG Given a directed acyclic graph G(V, E) with N nodes, M edges, a designated source s, and an integer L, design a 2D dynamic progr...
Maximize memory capacity with primary-backup servers
You are helping to optimize the capacity of a cloud system. There are n servers, where n is always even. The memory capacity of the i-th server is giv...
Maximize total bandwidth of data channel pairs
You are optimizing how information flows through a network of processing nodes. There are n processing nodes. The bandwidth capability of the i-th nod...
Find when failures started in log stream
This question evaluates understanding of monotonic sequences and search algorithms (such as binary search), along with algorithmic reasoning about cor...
Print all odd numbers from an integer list
This question evaluates proficiency with array/list manipulation, parity checking, and handling edge cases such as negative values and integers outsid...
Implement array and tree traversal tasks
This question evaluates algorithmic problem-solving and data-structure competency, specifically array-based optimization for single-trade profit and t...
Minimize Branch Merge Conflicts
You are given several feature branches that must all be merged into the main branch. Each branch contains a sequence of commits, and each commit modif...
Find longest common contiguous subarray
Given two integer arrays A and B, find the length of the longest contiguous subarray that appears in both arrays. If multiple exist, return any one pa...