TikTok vs X Interview Questions
TikTok lists 351 LeetCode interview questions while X lists 51. They share 18 problems — 5% of TikTok's bank and 35% of X's. Focus on the overlap first, then drill into 333 TikTok-only and 33 X-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 18 overlapping problems first. These are the highest-yield questions for candidates interviewing at both TikTok and X.
Step 2 — Company-specific depth: Add TikTok-specific problems like Number of Islands, Longest Increasing Subsequence, 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
18 Shared Questions
High-priority problems to practice for both TikTok and X.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Merge Intervals | Medium |
| Trapping Rain Water | Hard |
| Merge k Sorted Lists | Hard |
| Valid Parentheses | Easy |
| Insert Delete GetRandom O(1) | Medium |
| Word Break II | Hard |
| Reverse Linked List | Easy |
| Regular Expression Matching | Hard |
| Alien Dictionary | Hard |
| Multiply Strings | Medium |
| Kth Smallest Element in a Sorted Matrix | Medium |
| Integer to Roman | Medium |
| Number of Connected Components in an Undirected Graph | Medium |
| Validate IP Address | Medium |
| Process Tasks Using Servers | Medium |
| Happy Number | Easy |
| Implement Trie (Prefix Tree) | Medium |
Unique to TikTok (333)
Problems in TikTok's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Number of Islands | Medium |
| Longest Increasing Subsequence | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Number of Distinct Islands | Medium |
| Meeting Rooms II | Medium |
| Course Schedule II | Medium |
| Course Schedule | Medium |
| Subarray With Elements Greater Than Varying Threshold | Hard |
| Text Justification | Hard |
| Decode String | Medium |
| Word Search | Medium |
| Longest Palindromic Substring | Medium |
Unique to X (33)
Problems in X's list that do not appear at TikTok.
| Problem | Difficulty |
|---|---|
| Tweet Counts Per Frequency | Medium |
| Flatten Nested List Iterator | Medium |
| Design Twitter | Medium |
| Binary Gap | Easy |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| Trapping Rain Water II | Hard |
| Finding the Users Active Minutes | Medium |
| One Edit Distance | Medium |
| Invalid Tweets | Easy |
| Best Meeting Point | Hard |
| Wildcard Matching | Hard |
Frequently Asked Questions
How many LeetCode questions do TikTok and X share?
TikTok and X share 18 LeetCode interview questions. 333 problems appear only in TikTok's list and 33 appear only in X's list.
What topics overlap most between TikTok and X?
The most common shared topics between TikTok and X are String (8 shared questions), Array (7 shared questions), Hash Table (6 shared questions), Math (4 shared questions), Linked List (3 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: TikTok or X?
TikTok has 34 Easy, 245 Medium, and 72 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 TikTok and X?
Start with the 18 shared problems since they cover what both companies ask most often. Then add 20 TikTok-specific and 20 X-specific questions to round out your prep.