Amazon vs Yahoo Interview Questions

Amazon lists 1,968 LeetCode interview questions while Yahoo lists 34. They share 31 problems — 2% of Amazon's bank and 91% of Yahoo's. Focus on the overlap first, then drill into 1,937 Amazon-only and 3 Yahoo-only questions.

Read the full Amazon vs Yahoo preparation guide →

Overview

Amazon

1,968 questions

Easy 527Medium 1074Hard 367
Yahoo

34 questions

Easy 11Medium 20Hard 3

Preparation Strategy

Step 1 — Shared core: Solve the 31 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Amazon and Yahoo.

Step 2 — Company-specific depth: Add Amazon-specific problems like Trapping Rain Water, Number of Islands, Longest Substring Without Repeating Characters and Yahoo-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Amazon skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Amazon
527
Yahoo
11
Medium
Amazon
1074
Yahoo
20
Hard
Amazon
367
Yahoo
3

Top Shared Topics

31 Shared Questions

High-priority problems to practice for both Amazon and Yahoo.

ProblemDifficulty
Two SumEasy
LRU CacheMedium
Median of Two Sorted ArraysHard
Valid ParenthesesEasy
Longest Common PrefixEasy
Subarray Sum Equals KMedium
Search in Rotated Sorted ArrayMedium
Top K Frequent ElementsMedium
Palindrome NumberEasy
Word SearchMedium
Spiral MatrixMedium
Meeting Rooms IIMedium
Roman to IntegerEasy
Find Peak ElementMedium
Word BreakMedium
Longest Repeating Character ReplacementMedium
Serialize and Deserialize Binary TreeHard
Reverse Linked ListEasy
Contains DuplicateEasy
Combination SumMedium
Validate Binary Search TreeMedium
Linked List CycleEasy
Evaluate DivisionMedium
Decode StringMedium
Maximum Depth of Binary TreeEasy
Shortest Path in Binary MatrixMedium
Flatten Nested List IteratorMedium
Restore IP AddressesMedium
Binary Number with Alternating BitsEasy
Maximum Distance in ArraysMedium

Showing top 30 of 31 shared problems.

Unique to Amazon (1,937)

Problems in Amazon's list that do not appear at Yahoo.

ProblemDifficulty
Trapping Rain WaterHard
Number of IslandsMedium
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
Group AnagramsMedium
Add Two NumbersMedium
Reorganize StringMedium
3SumMedium
Longest Palindromic SubstringMedium
Merge IntervalsMedium
Container With Most WaterMedium
Koko Eating BananasMedium

Unique to Yahoo (3)

Problems in Yahoo's list that do not appear at Amazon.

ProblemDifficulty
Largest Palindrome ProductHard
Matrix Cells in Distance OrderEasy
Peeking IteratorMedium

Frequently Asked Questions

How many LeetCode questions do Amazon and Yahoo share?

Amazon and Yahoo share 31 LeetCode interview questions. 1937 problems appear only in Amazon's list and 3 appear only in Yahoo's list.

What topics overlap most between Amazon and Yahoo?

The most common shared topics between Amazon and Yahoo are Array (16 shared questions), String (10 shared questions), Hash Table (9 shared questions), Depth-First Search (6 shared questions), Tree (4 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Amazon or Yahoo?

Amazon has 527 Easy, 1074 Medium, and 367 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Amazon has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Amazon and Yahoo?

Start with the 31 shared problems since they cover what both companies ask most often. Then add 20 Amazon-specific and 3 Yahoo-specific questions to round out your prep.

Explore More