Amazon interview questions

7,012 questions from 882 candidate reports · 2010 to 2025

Online test → Technical → Technical·59% entry level

DSA

Showing 45 of 5,938 reported in this area

Find the diameter of a binary tree.
asked 17×mediumPractice this →
Check whether a given binary tree is a Binary Search Tree (BST).
asked 17×mediumPractice this →
Search an element in a row-wise and column-wise sorted matrix
asked 17×easyPractice this →
Design and implement an LRU Cache.
asked 16×mediumPractice this →
Find the next greater element for each element in an array.
asked 16×mediumPractice this →
Print the top view of a binary tree.
asked 15×mediumPractice this →
Print the left view of a binary tree.
asked 14×easyPractice this →
Add two numbers represented by linked lists.
asked 12×mediumPractice this →
Find the Lowest Common Ancestor (LCA) of two nodes in a Binary Tree.
asked 12×mediumPractice this →
Count the number of inversions in an array
asked 11×mediumPractice this →
Print the boundary traversal of a binary tree.
asked 11×mediumPractice this →
Find the first non-repeating character in a given string.
asked 11×easyPractice this →
Reverse a linked list in groups of size k.
asked 10×mediumPractice this →
Clone a linked list with next and random pointer
asked 10×mediumPractice this →
Find the vertical sum in a binary tree
asked 9×mediumPractice this →
Reverse every k nodes in a linked list.
asked 9×mediumPractice this →
Print all permutations of a given string.
asked 9×mediumPractice this →
Perform boundary traversal of a binary tree.
asked 9×mediumPractice this →
Find the median of a stream of running integers
asked 9×mediumPractice this →
Search an element in a sorted and rotated array
asked 9×mediumPractice this →
Find the next greater number with the same set of digits
asked 9×mediumPractice this →
Find the longest palindromic substring in a given string.
asked 9×mediumPractice this →
Print a matrix in spiral order.
asked 9×easyPractice this →
Find the row with the maximum number of 1s in a binary matrix
asked 9×easyPractice this →
Find the Lowest Common Ancestor (LCA) in a Binary Tree.
asked 8×mediumPractice this →
Perform level order traversal of a binary tree in spiral (zigzag) form.
asked 8×mediumPractice this →
Serialize and deserialize a binary tree
asked 7×mediumPractice this →
Convert an infix expression to postfix expression
asked 7×mediumPractice this →
Design and implement an LRU (Least Recently Used) Cache.
asked 7×mediumPractice this →
Find the length of the longest substring without repeating characters.
asked 7×mediumPractice this →
Given a sorted dictionary of an alien language, find the order of characters.
asked 7×mediumPractice this →
Find the maximum path sum in a binary tree
asked 7×hardPractice this →
Check whether a given linked list is a palindrome.
asked 7×easyPractice this →
Check whether a binary tree is a binary search tree
asked 7×easyPractice this →
Merge overlapping intervals.
asked 6×mediumPractice this →
Convert a given binary tree to a sum tree
asked 6×mediumPractice this →
Find an element in a rotated sorted array.
asked 6×mediumPractice this →
Print a binary tree in vertical order traversal.
asked 6×mediumPractice this →
Connect nodes at the same level in a binary tree.
asked 6×mediumPractice this →
Merge k sorted arrays into a single sorted array.
asked 6×mediumPractice this →
Perform zigzag (spiral) traversal of a binary tree
asked 6×mediumPractice this →
Perform zig-zag (spiral) traversal of a binary tree
asked 6×mediumPractice this →
Find the distance between two given nodes in a binary tree.
asked 6×mediumPractice this →
Find the first non-repeating character in a stream of characters
asked 6×mediumPractice this →
Reverse a linked list.
asked 6×easyPractice this →

CS fundamentals

Showing 3 of 1,563 reported in this area

What is the difference between a process and a thread?
asked 16×easyPractice this →
Explain ACID properties in DBMS
asked 10×easyPractice this →
Explain the difference between TCP and UDP.
asked 9×easyPractice this →

Behavioural

Showing 3 of 532 reported in this area

Tell me about a situation where you worked on a tight deadline.
Describe a time when you had a conflict with your manager and how you handled it
Describe a situation where you had a conflict with your manager and how you handled it.

System design

Showing 3 of 479 reported in this area

Design a Parking Lot system.
asked 5×mediumPractice this →
Design a Chess game.
asked 2×mediumPractice this →
Design a notification system
asked 2×mediumPractice this →

Aptitude

Showing 3 of 84 reported in this area

Find the roots of a quadratic equation
asked 4×easyPractice this →
Solve a linear equation in one variable
asked 3×easyPractice this →
Aptitude and logical reasoning problems
asked 2×easyPractice this →

Puzzles

Showing 3 of 39 reported in this area

Given a jar of pills, find the jar with defective pills.
asked oncemediumPractice this →
Given a prime number p ≥ 5, prove that (p² − 1) is divisible by 24.
asked oncemediumPractice this →
A logical puzzle about cutting a cake that is not of a regular shape.
asked oncemediumPractice this →

Showing 60 of 7,012 questions. Ranked by how often the same question came back across reports.

Practise a Amazon-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does Amazon ask?

Candidate interview reports most often cover DSA (69%) and CS fundamentals (18%).

How many rounds does Amazon interview have?

Candidate interview reports show an average of 4.1 rounds per experience, with a typical sequence of Online test → Technical → Technical. Individual interview paths can vary.

Is the Amazon interview hard?

Among questions with a reported difficulty, the mix is easy 26%, medium 61%, hard 13%.

Keep reading