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
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
Top Shared Topics
12 Shared Questions
High-priority problems to practice for both Microsoft and X.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Merge Intervals | Medium |
| Valid Parentheses | Easy |
| Merge k Sorted Lists | Hard |
| Integer to Roman | Medium |
| Happy Number | Easy |
| Regular Expression Matching | Hard |
| LRU Cache | Medium |
| Reverse Linked List | Easy |
| Wildcard Matching | Hard |
| Multiply Strings | Medium |
| Lowest Common Ancestor of a Binary Search Tree | Medium |
Unique to Microsoft (180)
Problems in Microsoft's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Merge Sorted Array | Easy |
| Longest Substring Without Repeating Characters | Medium |
| Add Two Numbers | Medium |
| Longest Palindromic Substring | Medium |
| Single Element in a Sorted Array | Medium |
| Median of Two Sorted Arrays | Hard |
| 3Sum | Medium |
| Maximum Subarray | Medium |
| Group Anagrams | Medium |
| Search in Rotated Sorted Array | Medium |
| Reverse Nodes in k-Group | Hard |
Unique to X (39)
Problems in X's list that do not appear at Microsoft.
| Problem | Difficulty |
|---|---|
| Tweet Counts Per Frequency | Medium |
| Flatten Nested List Iterator | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Insert Delete GetRandom O(1) | Medium |
| Design Twitter | Medium |
| Binary Gap | Easy |
| Word Break II | Hard |
| Alien Dictionary | Hard |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| Trapping Rain Water II | Hard |
| Finding the Users Active Minutes | Medium |
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.