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.
Overview
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
Top Shared Topics
31 Shared Questions
High-priority problems to practice for both Amazon and Yahoo.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| LRU Cache | Medium |
| Median of Two Sorted Arrays | Hard |
| Valid Parentheses | Easy |
| Longest Common Prefix | Easy |
| Subarray Sum Equals K | Medium |
| Search in Rotated Sorted Array | Medium |
| Top K Frequent Elements | Medium |
| Palindrome Number | Easy |
| Word Search | Medium |
| Spiral Matrix | Medium |
| Meeting Rooms II | Medium |
| Roman to Integer | Easy |
| Find Peak Element | Medium |
| Word Break | Medium |
| Longest Repeating Character Replacement | Medium |
| Serialize and Deserialize Binary Tree | Hard |
| Reverse Linked List | Easy |
| Contains Duplicate | Easy |
| Combination Sum | Medium |
| Validate Binary Search Tree | Medium |
| Linked List Cycle | Easy |
| Evaluate Division | Medium |
| Decode String | Medium |
| Maximum Depth of Binary Tree | Easy |
| Shortest Path in Binary Matrix | Medium |
| Flatten Nested List Iterator | Medium |
| Restore IP Addresses | Medium |
| Binary Number with Alternating Bits | Easy |
| Maximum Distance in Arrays | Medium |
Showing top 30 of 31 shared problems.
Unique to Amazon (1,937)
Problems in Amazon's list that do not appear at Yahoo.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Number of Islands | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Group Anagrams | Medium |
| Add Two Numbers | Medium |
| Reorganize String | Medium |
| 3Sum | Medium |
| Longest Palindromic Substring | Medium |
| Merge Intervals | Medium |
| Container With Most Water | Medium |
| Koko Eating Bananas | Medium |
Unique to Yahoo (3)
Problems in Yahoo's list that do not appear at Amazon.
| Problem | Difficulty |
|---|---|
| Largest Palindrome Product | Hard |
| Matrix Cells in Distance Order | Easy |
| Peeking Iterator | Medium |
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.