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

Apple

300 questions

Easy 76Medium 178Hard 46
X

51 questions

Easy 8Medium 31Hard 12

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

Easy
Apple
76
X
8
Medium
Apple
178
X
31
Hard
Apple
46
X
12

Top Shared Topics

20 Shared Questions

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

ProblemDifficulty
LRU CacheMedium
Merge IntervalsMedium
Reverse Linked ListEasy
Valid ParenthesesEasy
Merge k Sorted ListsHard
Trapping Rain WaterHard
Insert Delete GetRandom O(1)Medium
Implement Trie (Prefix Tree)Medium
Pascal's TriangleEasy
Max Points on a LineHard
Regular Expression MatchingHard
Flatten Nested List IteratorMedium
Kth Smallest Element in a Sorted MatrixMedium
Alien DictionaryHard
Happy NumberEasy
Validate IP AddressMedium
The Skyline ProblemHard
Lowest Common Ancestor of a Binary Search TreeMedium
Design TwitterMedium
One Edit DistanceMedium

Unique to Apple (280)

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

ProblemDifficulty
Two SumEasy
Number of IslandsMedium
Best Time to Buy and Sell StockEasy
Design Hit CounterMedium
Longest Common PrefixEasy
Rotate ArrayMedium
Valid SudokuMedium
Group AnagramsMedium
Top K Frequent ElementsMedium
Course Schedule IIMedium
Course ScheduleMedium
Longest Substring Without Repeating CharactersMedium

Unique to X (31)

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

ProblemDifficulty
Tweet Counts Per FrequencyMedium
Binary GapEasy
Integer to RomanMedium
Word Break IIHard
Time Needed to Buy TicketsEasy
Trapping Rain Water IIHard
Finding the Users Active MinutesMedium
Invalid TweetsEasy
Best Meeting PointHard
Multiply StringsMedium
Wildcard MatchingHard
Minimum Genetic MutationMedium

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.

Explore More