IBM vs Microsoft Interview Questions

IBM lists 115 LeetCode interview questions while Microsoft lists 192. They share 45 problems — 39% of IBM's bank and 23% of Microsoft's. Focus on the overlap first, then drill into 70 IBM-only and 147 Microsoft-only questions.

Read the full IBM vs Microsoft preparation guide →

Overview

IBM

115 questions

Easy 33Medium 73Hard 9
Microsoft

192 questions

Easy 55Medium 109Hard 28

Preparation Strategy

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

Step 2 — Company-specific depth: Add IBM-specific problems like Find the Smallest Divisor Given a Threshold, Gray Code, Exclusive Time of Functions and Microsoft-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
IBM
33
Microsoft
55
Medium
IBM
73
Microsoft
109
Hard
IBM
9
Microsoft
28

Top Shared Topics

45 Shared Questions

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

ProblemDifficulty
3SumMedium
Integer to RomanMedium
Roman to IntegerEasy
Best Time to Buy and Sell StockEasy
Two SumEasy
Meeting Rooms IIMedium
Rotate ImageMedium
Merge IntervalsMedium
Longest Substring Without Repeating CharactersMedium
Longest Common PrefixEasy
Valid ParenthesesEasy
Merge Strings AlternatelyEasy
Letter Combinations of a Phone NumberMedium
Longest Consecutive SequenceMedium
Longest Palindromic SubstringMedium
Merge Sorted ArrayEasy
Maximum SubarrayMedium
Spiral MatrixMedium
Group AnagramsMedium
Validate Binary Search TreeMedium
Climbing StairsEasy
Trapping Rain WaterHard
Product of Array Except SelfMedium
Next PermutationMedium
Find the Index of the First Occurrence in a StringEasy
Subarray Sum Equals KMedium
Intersection of Two ArraysEasy
Rotate ArrayMedium
Single-Threaded CPUMedium
Median of Two Sorted ArraysHard

Showing top 30 of 45 shared problems.

Unique to IBM (70)

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

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
Exclusive Time of FunctionsMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
Fizz BuzzEasy
Count Ways to Group Overlapping RangesMedium
Minimum Absolute DifferenceEasy
Minimum Operations to Make All Array Elements EqualMedium
Number of Divisible Triplet SumsMedium
Find Pivot IndexEasy
Minimum Operations to Make Median of Array Equal to KMedium
The kth Factor of nMedium

Unique to Microsoft (147)

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

ProblemDifficulty
Add Two NumbersMedium
Single Element in a Sorted ArrayMedium
Search in Rotated Sorted ArrayMedium
Reverse Nodes in k-GroupHard
Merge Two Sorted ListsEasy
Container With Most WaterMedium
Merge k Sorted ListsHard
Sort ColorsMedium
Create Hello World FunctionEasy
Set Matrix ZeroesMedium
Number of IslandsMedium
Word SearchMedium

Frequently Asked Questions

How many LeetCode questions do IBM and Microsoft share?

IBM and Microsoft share 45 LeetCode interview questions. 70 problems appear only in IBM's list and 147 appear only in Microsoft's list.

What topics overlap most between IBM and Microsoft?

The most common shared topics between IBM and Microsoft are Array (19 shared questions), Two Pointers (10 shared questions), String (10 shared questions), Hash Table (9 shared questions), Sorting (7 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: IBM or Microsoft?

IBM has 33 Easy, 73 Medium, and 9 Hard questions. Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. Microsoft has a higher proportion of Hard problems in its interview set.

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

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

Explore More