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

"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."
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...
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...
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...
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 ...
Build a BFS Web Crawler
Implement a web crawler for a single website. You are given: - A starting URL startUrl - A function fetch(url) that returns the HTML content of a page...
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...
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...
Find Affected Services After Shutdown
You are given a set of services and their dependency relationships. The input is a hash map where each key is a service name, and the value is a list ...
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...
Solve array duplicates and two-type subarray
Coding questions Solve the following array problems. Problem 1: Check for duplicates Given an integer array nums, return true if any value appears at ...
Compute total revenue from greedy VM rentals
You manage n VM types. VM type i starts with inventory a[i] (number of available instances). There are m customers arriving one by one. For each custo...
Maximize protected population with one-step guard shifts
There are n cities in a line (1-indexed). You are given: - population[1..n]: population of each city - unit: a binary string of length n, where unit[i...
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 ...
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...
Implement array and tree traversal tasks
You are interviewing for a storage/infra-leaning role. Solve the following coding tasks and be ready to discuss time/space complexity and edge cases. ...
Merge two sorted arrays in-place
Given two arrays arr1 and arr2, both sorted in ascending order. - Modify arr1 in-place to contain all elements from arr1 and arr2 in ascending order. ...
Print all odd numbers from an integer list
Problem Given a list/array of integers nums, print (or return) every odd number in the list, in the same order they appear. Clarifications / follow-up...
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)...
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...
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}...