Amazon Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.

"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...
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...
Solve two string DP/hash problems
Solve the following two coding questions. 1) Unique Morse Code Transformations You are given an array of strings words (lowercase English letters). Us...
Design streaming error-log counting with moving average
Design a core component in a streaming system: Input: - Multiple upstream services continuously emit log events. - Each event includes at least: servi...
Answer Amazon-style behavioral questions
You are interviewing for a role at Amazon and are asked the following behavioral questions. Answer each using the STAR method (Situation, Task, Action...
Solve Two String Problems
You are asked to solve the following two coding problems: 1. Unique Morse Code Transformations You are given an array of lowercase English words, word...
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 ...
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...
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...
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...
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 Amazon Behavioral Questions
You are interviewing for an Amazon Software Development Engineer internship final round. Prepare strong, structured responses to the following behavio...
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...
Answer Amazon-style leadership deep dives
Behavioral / Leadership Prompt (Principal level) Prepare to answer deep-dive leadership questions with heavy follow-ups. Scenarios to cover - A failed...
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)...
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 ...
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...
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. ...
Design a cloud database write path and recovery
System Design (Engine-level): Write Path + Crash Recovery Design a core subsystem for a cloud-native relational database (Aurora-like) where compute i...