IBM vs Yahoo Interview Questions

IBM lists 115 LeetCode interview questions while Yahoo lists 34. They share 12 problems — 10% of IBM's bank and 35% of Yahoo's. Focus on the overlap first, then drill into 103 IBM-only and 22 Yahoo-only questions.

Read the full IBM vs Yahoo preparation guide →

Overview

IBM

115 questions

Easy 33Medium 73Hard 9
Yahoo

34 questions

Easy 11Medium 20Hard 3

Preparation Strategy

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

Step 2 — Company-specific depth: Add IBM-specific problems like Find the Smallest Divisor Given a Threshold, Gray Code, 3Sum and Yahoo-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
IBM
33
Yahoo
11
Medium
IBM
73
Yahoo
20
Hard
IBM
9
Yahoo
3

Top Shared Topics

12 Shared Questions

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

ProblemDifficulty
Roman to IntegerEasy
Two SumEasy
Meeting Rooms IIMedium
Longest Common PrefixEasy
Valid ParenthesesEasy
Spiral MatrixMedium
Validate Binary Search TreeMedium
Subarray Sum Equals KMedium
Median of Two Sorted ArraysHard
Palindrome NumberEasy
Word BreakMedium
LRU CacheMedium

Unique to IBM (103)

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

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
3SumMedium
Exclusive Time of FunctionsMedium
Integer to RomanMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
Fizz BuzzEasy
Best Time to Buy and Sell StockEasy
Count Ways to Group Overlapping RangesMedium
Rotate ImageMedium
Minimum Absolute DifferenceEasy
Minimum Operations to Make All Array Elements EqualMedium

Unique to Yahoo (22)

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

ProblemDifficulty
Maximum Depth of Binary TreeEasy
Reverse Linked ListEasy
Contains DuplicateEasy
Serialize and Deserialize Binary TreeHard
Largest Palindrome ProductHard
Linked List CycleEasy
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium
Binary Number with Alternating BitsEasy
Peeking IteratorMedium
Top K Frequent ElementsMedium

Frequently Asked Questions

How many LeetCode questions do IBM and Yahoo share?

IBM and Yahoo share 12 LeetCode interview questions. 103 problems appear only in IBM's list and 22 appear only in Yahoo's list.

What topics overlap most between IBM and Yahoo?

The most common shared topics between IBM and Yahoo are Array (6 shared questions), Hash Table (5 shared questions), String (4 shared questions), Math (2 shared questions), Prefix Sum (2 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: IBM or Yahoo?

IBM has 33 Easy, 73 Medium, and 9 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Yahoo has a higher proportion of Hard problems in its interview set.

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

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

Explore More