Microsoft vs X Interview Questions

Microsoft lists 192 LeetCode interview questions while X lists 51. They share 12 problems — 6% of Microsoft's bank and 24% of X's. Focus on the overlap first, then drill into 180 Microsoft-only and 39 X-only questions.

Overview

Microsoft

192 questions

Easy 55Medium 109Hard 28
X

51 questions

Easy 8Medium 31Hard 12

Preparation Strategy

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

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

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

Difficulty Comparison

Easy
Microsoft
55
X
8
Medium
Microsoft
109
X
31
Hard
Microsoft
28
X
12

Top Shared Topics

12 Shared Questions

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

ProblemDifficulty
Trapping Rain WaterHard
Merge IntervalsMedium
Valid ParenthesesEasy
Merge k Sorted ListsHard
Integer to RomanMedium
Happy NumberEasy
Regular Expression MatchingHard
LRU CacheMedium
Reverse Linked ListEasy
Wildcard MatchingHard
Multiply StringsMedium
Lowest Common Ancestor of a Binary Search TreeMedium

Unique to Microsoft (180)

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

ProblemDifficulty
Two SumEasy
Merge Sorted ArrayEasy
Longest Substring Without Repeating CharactersMedium
Add Two NumbersMedium
Longest Palindromic SubstringMedium
Single Element in a Sorted ArrayMedium
Median of Two Sorted ArraysHard
3SumMedium
Maximum SubarrayMedium
Group AnagramsMedium
Search in Rotated Sorted ArrayMedium
Reverse Nodes in k-GroupHard

Unique to X (39)

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

ProblemDifficulty
Tweet Counts Per FrequencyMedium
Flatten Nested List IteratorMedium
Implement Trie (Prefix Tree)Medium
Insert Delete GetRandom O(1)Medium
Design TwitterMedium
Binary GapEasy
Word Break IIHard
Alien DictionaryHard
Time Needed to Buy TicketsEasy
Max Points on a LineHard
Trapping Rain Water IIHard
Finding the Users Active MinutesMedium

Frequently Asked Questions

How many LeetCode questions do Microsoft and X share?

Microsoft and X share 12 LeetCode interview questions. 180 problems appear only in Microsoft's list and 39 appear only in X's list.

What topics overlap most between Microsoft and X?

The most common shared topics between Microsoft and X are String (5 shared questions), Dynamic Programming (3 shared questions), Linked List (3 shared questions), Hash Table (3 shared questions), Math (3 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Microsoft or X?

Microsoft has 55 Easy, 109 Medium, and 28 Hard questions. X has 8 Easy, 31 Medium, and 12 Hard questions. X has a higher proportion of Hard problems in its interview set.

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

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

Explore More