Apple vs X Interview Questions
Apple lists 300 LeetCode interview questions while X lists 51. They share 20 problems — 7% of Apple's bank and 39% of X's. Focus on the overlap first, then drill into 280 Apple-only and 31 X-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 20 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Apple and X.
Step 2 — Company-specific depth: Add Apple-specific problems like Two Sum, Number of Islands, Best Time to Buy and Sell Stock 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
20 Shared Questions
High-priority problems to practice for both Apple and X.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Merge Intervals | Medium |
| Reverse Linked List | Easy |
| Valid Parentheses | Easy |
| Merge k Sorted Lists | Hard |
| Trapping Rain Water | Hard |
| Insert Delete GetRandom O(1) | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Pascal's Triangle | Easy |
| Max Points on a Line | Hard |
| Regular Expression Matching | Hard |
| Flatten Nested List Iterator | Medium |
| Kth Smallest Element in a Sorted Matrix | Medium |
| Alien Dictionary | Hard |
| Happy Number | Easy |
| Validate IP Address | Medium |
| The Skyline Problem | Hard |
| Lowest Common Ancestor of a Binary Search Tree | Medium |
| Design Twitter | Medium |
| One Edit Distance | Medium |
Unique to Apple (280)
Problems in Apple's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Number of Islands | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Design Hit Counter | Medium |
| Longest Common Prefix | Easy |
| Rotate Array | Medium |
| Valid Sudoku | Medium |
| Group Anagrams | Medium |
| Top K Frequent Elements | Medium |
| Course Schedule II | Medium |
| Course Schedule | Medium |
| Longest Substring Without Repeating Characters | Medium |
Unique to X (31)
Problems in X's list that do not appear at Apple.
| Problem | Difficulty |
|---|---|
| Tweet Counts Per Frequency | Medium |
| Binary Gap | Easy |
| Integer to Roman | Medium |
| Word Break II | Hard |
| Time Needed to Buy Tickets | Easy |
| Trapping Rain Water II | Hard |
| Finding the Users Active Minutes | Medium |
| Invalid Tweets | Easy |
| Best Meeting Point | Hard |
| Multiply Strings | Medium |
| Wildcard Matching | Hard |
| Minimum Genetic Mutation | Medium |
Frequently Asked Questions
How many LeetCode questions do Apple and X share?
Apple and X share 20 LeetCode interview questions. 280 problems appear only in Apple's list and 31 appear only in X's list.
What topics overlap most between Apple and X?
The most common shared topics between Apple and X are Array (8 shared questions), Hash Table (6 shared questions), String (6 shared questions), Design (5 shared questions), Linked List (4 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Apple or X?
Apple has 76 Easy, 178 Medium, and 46 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 Apple and X?
Start with the 20 shared problems since they cover what both companies ask most often. Then add 20 Apple-specific and 20 X-specific questions to round out your prep.