Google vs Yahoo Interview Questions
Google lists 2,305 LeetCode interview questions while Yahoo lists 34. They share 32 problems — 1% of Google's bank and 94% of Yahoo's. Focus on the overlap first, then drill into 2,273 Google-only and 2 Yahoo-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 32 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Google and Yahoo.
Step 2 — Company-specific depth: Add Google-specific problems like Add Two Numbers, Trapping Rain Water, Merge Sorted Array and Yahoo-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Google skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
32 Shared Questions
High-priority problems to practice for both Google and Yahoo.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Median of Two Sorted Arrays | Hard |
| Longest Common Prefix | Easy |
| Palindrome Number | Easy |
| Valid Parentheses | Easy |
| Roman to Integer | Easy |
| Subarray Sum Equals K | Medium |
| Spiral Matrix | Medium |
| Meeting Rooms II | Medium |
| Reverse Linked List | Easy |
| Decode String | Medium |
| Search in Rotated Sorted Array | Medium |
| LRU Cache | Medium |
| Top K Frequent Elements | Medium |
| Find Peak Element | Medium |
| Longest Repeating Character Replacement | Medium |
| Contains Duplicate | Easy |
| Linked List Cycle | Easy |
| Combination Sum | Medium |
| Word Break | Medium |
| Word Search | Medium |
| Serialize and Deserialize Binary Tree | Hard |
| Evaluate Division | Medium |
| Maximum Depth of Binary Tree | Easy |
| Validate Binary Search Tree | Medium |
| Shortest Path in Binary Matrix | Medium |
| Flatten Nested List Iterator | Medium |
| Restore IP Addresses | Medium |
| Peeking Iterator | Medium |
| Binary Number with Alternating Bits | Easy |
Showing top 30 of 32 shared problems.
Unique to Google (2,273)
Problems in Google's list that do not appear at Yahoo.
| Problem | Difficulty |
|---|---|
| Add Two Numbers | Medium |
| Trapping Rain Water | Hard |
| Merge Sorted Array | Easy |
| Longest Substring Without Repeating Characters | Medium |
| Best Time to Buy and Sell Stock | Easy |
| 3Sum | Medium |
| Create Hello World Function | Easy |
| Merge Strings Alternately | Easy |
| Longest Palindromic Substring | Medium |
| Longest Consecutive Sequence | Medium |
| Container With Most Water | Medium |
| Recyclable and Low Fat Products | Easy |
Unique to Yahoo (2)
Problems in Yahoo's list that do not appear at Google.
| Problem | Difficulty |
|---|---|
| Largest Palindrome Product | Hard |
| Matrix Cells in Distance Order | Easy |
Frequently Asked Questions
How many LeetCode questions do Google and Yahoo share?
Google and Yahoo share 32 LeetCode interview questions. 2273 problems appear only in Google's list and 2 appear only in Yahoo's list.
What topics overlap most between Google and Yahoo?
The most common shared topics between Google and Yahoo are Array (16 shared questions), String (10 shared questions), Hash Table (9 shared questions), Depth-First Search (6 shared questions), Design (4 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Google or Yahoo?
Google has 601 Easy, 1205 Medium, and 499 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Google has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Google and Yahoo?
Start with the 32 shared problems since they cover what both companies ask most often. Then add 20 Google-specific and 2 Yahoo-specific questions to round out your prep.