LinkedIn vs X Interview Questions
LinkedIn lists 141 LeetCode interview questions while X lists 51. They share 12 problems — 9% of LinkedIn's bank and 24% of X's. Focus on the overlap first, then drill into 129 LinkedIn-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 LinkedIn and X.
Step 2 — Company-specific depth: Add LinkedIn-specific problems like Max Stack, Nested List Weight Sum II, All O`one Data Structure 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 LinkedIn and X.
| Problem | Difficulty |
|---|---|
| Design Authentication Manager | Medium |
| Valid Parentheses | Easy |
| Insert Delete GetRandom O(1) | Medium |
| Lowest Common Ancestor of a Binary Search Tree | Medium |
| Process Tasks Using Servers | Medium |
| Merge Intervals | Medium |
| Max Points on a Line | Hard |
| LRU Cache | Medium |
| Flatten Nested List Iterator | Medium |
| Merge k Sorted Lists | Hard |
| Number of Connected Components in an Undirected Graph | Medium |
| Integer to Roman | Medium |
Unique to LinkedIn (129)
Problems in LinkedIn's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Max Stack | Hard |
| Nested List Weight Sum II | Medium |
| All O`one Data Structure | Hard |
| Word Ladder | Hard |
| Find the Celebrity | Medium |
| Nested List Weight Sum | Medium |
| Find Leaves of Binary Tree | Medium |
| Shortest Word Distance II | Medium |
| Maximum Subarray | Medium |
| Max Consecutive Ones III | Medium |
| Number of Islands | Medium |
| Maximum Product Subarray | Medium |
Unique to X (39)
Problems in X's list that do not appear at LinkedIn.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Tweet Counts Per Frequency | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Design Twitter | Medium |
| Binary Gap | Easy |
| Regular Expression Matching | Hard |
| Word Break II | Hard |
| Alien Dictionary | Hard |
| Time Needed to Buy Tickets | Easy |
| Trapping Rain Water II | Hard |
| Finding the Users Active Minutes | Medium |
| One Edit Distance | Medium |
Frequently Asked Questions
How many LeetCode questions do LinkedIn and X share?
LinkedIn and X share 12 LeetCode interview questions. 129 problems appear only in LinkedIn's list and 39 appear only in X's list.
What topics overlap most between LinkedIn and X?
The most common shared topics between LinkedIn and X are Hash Table (5 shared questions), Design (4 shared questions), Array (4 shared questions), Linked List (3 shared questions), Math (3 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: LinkedIn or X?
LinkedIn has 25 Easy, 90 Medium, and 26 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 LinkedIn and X?
Start with the 12 shared problems since they cover what both companies ask most often. Then add 20 LinkedIn-specific and 20 X-specific questions to round out your prep.