Interview Intel · X

X coding interview
questions, leaked.

52 problems reported across recent X interviews. Top patterns: array, hash table, string. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

X's interview asks 52 questions across a ruthless distribution: 32 medium, 12 hard, only 8 easy. You won't have time to drill everything. Arrays dominate the data (21 problems), followed by hash tables and strings (14 each). Design patterns show up constantly. The median problem here requires multiple techniques stacked together. Trapping Rain Water, LRU Cache, The Skyline Problem, these aren't warm-ups. If you hit a pattern you haven't seen in the live assessment, StealthCoder runs invisibly behind the proctor's view and surfaces a working solution in seconds, so you can paste and move on.

Tracked problems
52
Easy
8/ 15%
Medium
32/ 62%
Hard
12/ 23%

Top problems at X

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Insert Delete GetRandom O(1)MEDIUM
100.0
02Trapping Rain WaterHARD
96.3
03Flatten Nested List IteratorMEDIUM
96.3
04Implement Trie (Prefix Tree)MEDIUM
94.2
05Design TwitterMEDIUM
94.2
06Merge IntervalsMEDIUM
94.2
07Tweet Counts Per FrequencyMEDIUM
94.2
08Investments in 2016MEDIUM
91.9
09Best Meeting PointHARD
91.9
10LRU CacheMEDIUM
91.9
11The Skyline ProblemHARD
89.4
12Rectangles AreaMEDIUM
89.4
13Happy NumberEASY
89.4
14Customer Placing the Largest Number of OrdersEASY
89.4
15Number of Black BlocksMEDIUM
89.4
16Reverse Linked ListEASY
89.4
17Validate IP AddressMEDIUM
89.4
18Tree NodeMEDIUM
89.4
19Masking Personal InformationMEDIUM
89.4
20Process Tasks Using ServersMEDIUM
89.4
21Number of Connected Components in an Undirected GraphMEDIUM
89.4
22Remove All Occurrences of a SubstringMEDIUM
89.4
23Lowest Common Ancestor of a Binary Search TreeMEDIUM
89.4
24Design Authentication ManagerMEDIUM
89.4
25Count Sub IslandsMEDIUM
89.4
26Pascal's TriangleEASY
89.4
27Minimum Elements to Add to Form a Given SumMEDIUM
89.4
28Kth Smallest Element in a Sorted MatrixMEDIUM
89.4
29Count Student Number in DepartmentsMEDIUM
89.4
30Minimum Genetic MutationMEDIUM
89.4
31Minimum Number of Steps to Make Two Strings AnagramMEDIUM
89.4
32Permutation SequenceHARD
89.4
33Binary GapEASY
89.4
34Regular Expression MatchingHARD
89.4
35Integer to RomanMEDIUM
89.4
36Word Break IIHARD
89.4
37Alien DictionaryHARD
89.4
38Time Needed to Buy TicketsEASY
89.4
39Valid ParenthesesEASY
89.4
40Max Points on a LineHARD
89.4
41Merge k Sorted ListsHARD
89.4
42Trapping Rain Water IIHARD
89.4
43Finding the Users Active MinutesMEDIUM
89.4
44One Edit DistanceMEDIUM
89.4
45Invalid TweetsEASY
89.4
46Multiply StringsMEDIUM
89.4
47Wildcard MatchingHARD
89.4
48Design SkiplistHARD
89.4
49Flatten 2D VectorMEDIUM
89.4
50Random Pick with WeightMEDIUM
47.6

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual X OA. The proctor cannot see it. Screen share cannot detect it. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know.

Get StealthCoder
Topic distribution
What this means

The difficulty curve is steep: 62% medium and hard combined means you'll face algorithmic problems that require calm hands. Arrays are your foundation (21 problems), but don't skip hash tables and strings (14 each). Design questions like LRU Cache and Design Twitter test whether you can build systems under pressure, not just solve puzzles. BFS, DFS, and heap problems appear frequently enough that stumbling on one costs you. Math and database show up in roughly 15% of the pool, so they're not primary, but they're often paired with arrays. The real threat isn't missing one topic, it's failing a combo problem where array logic meets hash table tricks. That's where StealthCoder becomes your insurance: if a problem requires two techniques and your mind blanks on the second, you've got a working solution on screen in real time.

Companies with similar patterns

If you prepped for X, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass X.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know. Works on HackerRank, CodeSignal, CoderPad, and Karat.

X interview FAQ

How many array problems should I solve before the OA?+

Array problems are 40% of the reported pool (21 of 52). Plan to solve at least 15-20 before test day, mixing easy and medium. Trapping Rain Water and Merge Intervals represent the harder end. You'll see arrays paired with sorting, two pointers, and hash tables, so don't isolate them.

Is design a big part of X's interview?+

Yes. Nine problems across the data touch design concepts (LRU Cache, Design Twitter, Insert Delete GetRandom O(1)). All are medium difficulty. Design questions test your ability to combine hash tables, linked lists, and heaps under time pressure. Start with LRU Cache if you're weak here.

Should I study database questions?+

Database appears in six problems (about 11% of the pool). They're usually easy to medium. If SQL isn't your strength, study them last. They won't break your interview, but skipping them means leaving easy points on the table. Investments in 2016 is a common report-building problem.

What's the biggest trap in X's problem set?+

Combo problems. The Skyline Problem chains arrays, heaps, and line sweep together. Trapping Rain Water requires dynamic programming and two pointers in one shot. You can't solve these by drilling only arrays or only DP. Practice 5-6 multi-technique medium problems per week leading up to test day.

How much time should I spend on hard problems?+

Hard problems make up 23% of the pool (12 of 52). They're worth attempting, but don't sacrifice medium-problem fluency for them. Trapping Rain Water, Best Meeting Point, and The Skyline Problem are the hardest. Drill 3-4 hards in the week before your OA to stay sharp.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and X. StealthCoder is not affiliated with X.