Microsoft vs Yahoo Interview Questions

Microsoft lists 192 LeetCode interview questions while Yahoo lists 34. They share 22 problems — 11% of Microsoft's bank and 65% of Yahoo's. Focus on the overlap first, then drill into 170 Microsoft-only and 12 Yahoo-only questions.

Read the full Microsoft vs Yahoo preparation guide →

Overview

Microsoft

192 questions

Easy 55Medium 109Hard 28
Yahoo

34 questions

Easy 11Medium 20Hard 3

Preparation Strategy

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

Step 2 — Company-specific depth: Add Microsoft-specific problems like Merge Sorted Array, Longest Substring Without Repeating Characters, Add Two Numbers and Yahoo-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Microsoft
55
Yahoo
11
Medium
Microsoft
109
Yahoo
20
Hard
Microsoft
28
Yahoo
3

Top Shared Topics

22 Shared Questions

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

ProblemDifficulty
Two SumEasy
Median of Two Sorted ArraysHard
Valid ParenthesesEasy
Search in Rotated Sorted ArrayMedium
Roman to IntegerEasy
Spiral MatrixMedium
Palindrome NumberEasy
Longest Common PrefixEasy
Word SearchMedium
Find Peak ElementMedium
Validate Binary Search TreeMedium
Combination SumMedium
Subarray Sum Equals KMedium
Contains DuplicateEasy
LRU CacheMedium
Restore IP AddressesMedium
Serialize and Deserialize Binary TreeHard
Reverse Linked ListEasy
Meeting Rooms IIMedium
Word BreakMedium
Maximum Depth of Binary TreeEasy
Linked List CycleEasy

Unique to Microsoft (170)

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

ProblemDifficulty
Merge Sorted ArrayEasy
Longest Substring Without Repeating CharactersMedium
Add Two NumbersMedium
Longest Palindromic SubstringMedium
Trapping Rain WaterHard
Single Element in a Sorted ArrayMedium
Merge IntervalsMedium
3SumMedium
Maximum SubarrayMedium
Group AnagramsMedium
Reverse Nodes in k-GroupHard
Merge Two Sorted ListsEasy

Unique to Yahoo (12)

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

ProblemDifficulty
Largest Palindrome ProductHard
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium
Binary Number with Alternating BitsEasy
Peeking IteratorMedium
Top K Frequent ElementsMedium
Longest Repeating Character ReplacementMedium
Shortest Path in Binary MatrixMedium
Evaluate DivisionMedium
Flatten Nested List IteratorMedium
Decode StringMedium

Frequently Asked Questions

How many LeetCode questions do Microsoft and Yahoo share?

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

What topics overlap most between Microsoft and Yahoo?

The most common shared topics between Microsoft and Yahoo are Array (11 shared questions), Hash Table (7 shared questions), String (7 shared questions), Depth-First Search (4 shared questions), Binary Search (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Microsoft or Yahoo?

Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Microsoft has a higher proportion of Hard problems in its interview set.

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

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

Explore More