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.

Read the full Google vs Yahoo preparation guide →

Overview

Google

2,305 questions

Easy 601Medium 1205Hard 499
Yahoo

34 questions

Easy 11Medium 20Hard 3

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

Easy
Google
601
Yahoo
11
Medium
Google
1205
Yahoo
20
Hard
Google
499
Yahoo
3

Top Shared Topics

32 Shared Questions

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

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

Showing top 30 of 32 shared problems.

Unique to Google (2,273)

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

ProblemDifficulty
Add Two NumbersMedium
Trapping Rain WaterHard
Merge Sorted ArrayEasy
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
3SumMedium
Create Hello World FunctionEasy
Merge Strings AlternatelyEasy
Longest Palindromic SubstringMedium
Longest Consecutive SequenceMedium
Container With Most WaterMedium
Recyclable and Low Fat ProductsEasy

Unique to Yahoo (2)

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

ProblemDifficulty
Largest Palindrome ProductHard
Matrix Cells in Distance OrderEasy

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.

Explore More