Amazon

Amazon Software Engineer Onsite Coding Questions

1435+ questions from real Amazon Software Engineer Onsite Coding rounds, reported by candidates who interviewed there.

1435
Questions
8
Topic Areas
10+
Sources

What does the Amazon Onsite Coding round test?

The Amazon onsite coding round is the core technical evaluation. Software Engineer candidates typically see 2-3 algorithm and data structure problems. Problems range from medium to hard difficulty, and interviewers evaluate both correctness and code quality.

Top Topics in This Round

Amazon Software Engineer Onsite Coding Questions

I got this Question during amazon onsite interview. Can someone give me code for this. You work for a company with more than a million employees when a pandemic hit. The virus...

Amazon Onsite

Graph 2022

Recently had an Amazon onsite and didn\'t know how to solve this question. Given a list of strings, a starting word, and an ending word, return the list containing the minimum...

Amazon Onsite

Design 2021

Here is a question that I got during the amazon onsite interview round. Amazon is delivering packages to its customers through some delivery trucks in its fullfillment center. The packages...

Amazon Onsite

Hash Table 2020

I was asked this question during Amazon onsite interview. You have given students and their courses taken, find the minimum number of slots required. Example: std1 -> A, B, C std2 -> B std3...

Amazon Onsite

Coding Other 2020

Implement or Write a program that can perform File search based on file extension regex mathcing like .xml, or search files with size geater than 5MB. The interviewer made a...

Check if word can be made from { A, B } {B, A} {B, X} (Y, C} Input : BABY { A, B } {B, A} {B, X} (Y, C} Output:...

Amazon Onsite Question

Trees Graphs 2021

Given multiple school children and the paths they took from their school to their homes, find the longest most common path (paths are given in order of steps a child...

Given an array `serverStates` of length `n` where `serverStates[i]` is the state of the i-th server (`0`=OFF, `1`=ON), and an integer `k`. You may perform at most `k` operations, each flipping a serve

In a cloud system, there are n servers where the memory capacity of the ith server is represented by the array memory[i]. The system always contains an even number of servers. If the system has 2x ser

SDE II With the increasing frequency of cyber intrusions, safeguarding authentication systems has become essential. A dedicated research division has been established to examine different forms of se

Given a series of courses, each with a start and end time. Input: - A 2D list where each sublist represents a course's start and end time within a day. Output: - An integer representing the maximum

Given a string, determine if it can be transformed into a palindrome by swapping adjacent characters. If possible, return the minimum number of swaps needed. The maximum length of the string is 10^5.

In the context of logistics, you need to distribute a given number of parcels onto trucks. The objective is to minimize the maximum number of parcels on any truck. Given an integer array that represen

Given a list of data transfer commands, with data starting at position 0. Each command contains three integers: start point, endpoint, and amount of data. Implement a function to compute the final pos

Given a sentence composed of lowercase letters and a word. Your task is to determine how many times the complete word can be removed from the sentence. The requirements are: - Each removal of the wor

Amazon SDE-1 Virtual Onsite Interview Experience and Offer

Graph,Binary-Search,Heap,Arrays,Behavioral,Amazon-Lp,Interview-Experience,Gen-Ai 2026

Round 1: (Technical round, Feb 4th) Q1) It is similar to Cheapest Flights Within K Stops Q2) You are given a list of power sources, where each source has a certain amount of power, and n machines. E

I’m preparing for an Amazon Loop interview and had a question about the LeetCode company tags. For those who have interviewed at Amazon, how accurate are the Amazon-tagged questions on LeetCode Premiu

Received mail from hr asking confirmation for availability of interview on 12 jan and i acknowledged by saying yes since, then no response or confirmation mail or call from hr, what should I do? is th

People who have interview on 8th have you received any details of it and any briefing call link?

I already completed with 3 rounds of on-site interview and HR told round 4 will be scheduled after next week or next to next week. But it has been more than 2 weeks and no communication from them (eit

What to Expect in the Amazon Onsite Coding Round

The Amazon Software Engineer Onsite Coding round has a specific calibration purpose distinct from other rounds in the loop. Across 1435+ verified reports on LeakCode for this exact round type, the consistent expectations: clear scoping of the problem before diving into a solution, explicit reasoning about complexity, structured handling of edge cases, and the ability to discuss trade-offs between two reasonable approaches.

Reports tagged with the Onsite Coding round at Amazon show recurring patterns in difficulty and topic distribution. The Onsite Coding round is typically 45-60 minutes; the interviewer is calibrated against a specific rubric. The discriminator between candidates who advance and candidates who do not is rarely the final correctness of the answer. It is the path: did you clarify, did you verbalize your approach, did you handle edge cases, and did you communicate throughout.

How To Prepare for This Specific Round

Filter the questions below to the most recent reports (past 6-12 months). Questions tagged for this exact round type from this exact company at this exact role level are the highest-signal data available. Older reports may reference questions that have since rotated out of the company's pool.

Practice 4-6 representative problems from this set under timed conditions. The goal is not memorization (companies rotate questions); the goal is to internalize the patterns the interviewer typically reaches for and the depth of follow-up to expect. Reports on LeakCode also tag the typical follow-up depth at this round type, which is the discriminating signal between hire and no-hire calibration.

Onsite Coding Round Timing and Format

The Onsite Coding round at Amazon typically runs 45-60 minutes. Use the first 2-3 minutes to clarify requirements; you should never start coding or designing without verifying the input/output format, constraints, and edge cases out loud. Use the next 5-7 minutes to verbalize your approach before writing any code. The middle 20-30 minutes are implementation. Reserve the final 10 minutes for testing with concrete examples and discussing optimization or trade-offs.

Time budget discipline is one of the most reliable senior-vs-junior discriminators in this round. Strong candidates verbalize where they are in their budget out loud ("I've used about 20 minutes, I have 15 minutes left for testing and one optimization"). This signals engineering maturity to the interviewer and creates positive feedback they can capture in writing.

Common Failure Modes in This Round

Reports tagged "no hire" at Amazon Software Engineer Onsite Coding commonly cite: coding silently without verbalizing approach, jumping to implementation before clarifying requirements, missing edge cases (empty input, single element, very large input), producing working code that the candidate cannot refactor when asked, and failing to test their solution with concrete examples before declaring done.

The single most predictive failure mode in 2025-2026 reports: not asking clarifying questions. Interviewers at all FAANG companies are explicitly trained to weight this dimension. Strong candidates ask 3-5 clarifying questions even on problems that look obvious; weak candidates dive into code immediately. The clarifying-question check is often the first signal recorded in the interviewer's notes.

See All 1435 Questions from This Round

Full question text, answer context, and frequency data for subscribers.

Get Access