Amazon Software Engineer Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Evaluate actions in Amazon simulation
Amazon Work Simulation: Purpose, Modules, and Design Decisions Context and Assumptions The Work Simulation is a timed, scenario-based assessment used ...
Compute minimum passes to collect numbers
Question You are given an array shelf of n distinct integers that is a permutation of 1…n. Starting with target = 1, you repeatedly scan shelf from le...
Compute minimum passes over permutation
Question You are given an array shelf representing a permutation of the integers 1..n. Starting with target = 1, you repeatedly scan the array left-to...
Find most frequent log user
Question You are given a list of log entries in string format, where each entry contains a username and an access timestamp separated by a delimiter (...
Solve sliding-window and heap problems
Question Design an algorithm using a sliding window to compute the maximum sum of any contiguous subarray of length k; explain time- and space-complex...
Compute maximum distinct-product pickup days
Question Given an array of positive integers representing quantities of different products, on day i (starting from 1) you must pick exactly i distinc...
Find largest island area
Question Given a 2D grid of 0s and 1s, find the largest area of a connected group of 1s (island) using 4-directional adjacency; return that area. (Var...
Minimize cost & recommend movies
Question Given arrays size[] and cost[] where size[i] is the size of the i-th product and cost[i] is the cost to increase size[i] by one unit, compute...
Solve LeetCode string and list problems
Question LeetCode 767. Reorganize String LeetCode 23. Merge k Sorted Lists LeetCode 138. Copy List with Random Pointer https://leetcode.com/problems/r...
Implement basic calculator
Question LeetCode 227. Basic Calculator II – implement an arithmetic expression evaluator supporting +, -, *, / and integer operands https://leetcode....
Reflect on criticism and deadlines
Behavioral Interview Prompts — Amazon Software Engineer (Technical Phone Screen) Context You are preparing for a technical phone screen focused on beh...
Determine Rounds for Star Substring Threshold
Question Given a string S, an offset array O (replacement order), and an integer M, repeatedly replace S[O[i]] with ''. Determine the minimum number o...
Discuss deadline, challenge, feature
Behavioral Questions for a Software Engineer Phone Screen These prompts assess your ownership, delivery under pressure, problem-solving, and end-to-en...
Solve array and list algorithms
Question LeetCode 315. Count of Smaller Numbers After Self LeetCode 23. Merge k Sorted Lists Design algorithm for Amazon Locker getPackage (retrieve p...
Demonstrate Amazon leadership principles
Behavioral & Leadership Interview (Software Engineer — Onsite) Provide STAR-structured answers (Situation, Task, Action, Result). Use one concrete sto...
Solve Rotting Oranges and Bus Walk Reachability
Question LeetCode 994. Rotting Oranges. 2) Given start and end grid coordinates, an integer k (maximum walking distance), and a bidirectional graph of...
Design ad clickstream analytics system
System Design: Ad Clickstream Ingestion and Analytics with Kafka, S3, and Presto Context You are asked to design an end-to-end advertisement clickstre...
Explain core ML fundamentals
Machine Learning Fundamentals: Regularization, Losses, PCA, and Random Forests Assume standard supervised learning with linear models for regression/c...
Design object model for an elevator system
Design the object-oriented model for an elevator (lift) system in a multi-floor building that may have multiple elevators. The system should support: ...
Design a scalable image-based social network
Design the backend system for a social networking website primarily focused on sharing images (similar in spirit to an image-centric social app). User...