Google vs X Interview Questions

Google lists 2,305 LeetCode interview questions while X lists 51. They share 45 problems — 2% of Google's bank and 88% of X's. Focus on the overlap first, then drill into 2,260 Google-only and 6 X-only questions.

Overview

Google

2,305 questions

Easy 601Medium 1205Hard 499
X

51 questions

Easy 8Medium 31Hard 12

Preparation Strategy

Step 1 — Shared core: Solve the 45 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Google and X.

Step 2 — Company-specific depth: Add Google-specific problems like Two Sum, Add Two Numbers, Median of Two Sorted Arrays 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
Google
601
X
8
Medium
Google
1205
X
31
Hard
Google
499
X
12

Top Shared Topics

45 Shared Questions

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

ProblemDifficulty
Trapping Rain WaterHard
Valid ParenthesesEasy
Merge IntervalsMedium
Reverse Linked ListEasy
Pascal's TriangleEasy
LRU CacheMedium
Happy NumberEasy
Regular Expression MatchingHard
Merge k Sorted ListsHard
Insert Delete GetRandom O(1)Medium
Wildcard MatchingHard
Integer to RomanMedium
Trapping Rain Water IIHard
Implement Trie (Prefix Tree)Medium
Permutation SequenceHard
Alien DictionaryHard
Multiply StringsMedium
The Skyline ProblemHard
Word Break IIHard
Flatten Nested List IteratorMedium
Max Points on a LineHard
Invalid TweetsEasy
Lowest Common Ancestor of a Binary Search TreeMedium
Kth Smallest Element in a Sorted MatrixMedium
Number of Connected Components in an Undirected GraphMedium
Remove All Occurrences of a SubstringMedium
Design TwitterMedium
Flatten 2D VectorMedium
Minimum Cost to Connect SticksMedium
Time Needed to Buy TicketsEasy

Showing top 30 of 45 shared problems.

Unique to Google (2,260)

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

ProblemDifficulty
Two SumEasy
Add Two NumbersMedium
Median of Two Sorted ArraysHard
Longest Common PrefixEasy
Palindrome NumberEasy
Merge Sorted ArrayEasy
Longest Substring Without Repeating CharactersMedium
Best Time to Buy and Sell StockEasy
3SumMedium
Create Hello World FunctionEasy
Merge Strings AlternatelyEasy
Longest Palindromic SubstringMedium

Unique to X (6)

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

ProblemDifficulty
Finding the Users Active MinutesMedium
Count Student Number in DepartmentsMedium
Rectangles AreaMedium
Design Authentication ManagerMedium
Minimum Elements to Add to Form a Given SumMedium
Largest Plus SignMedium

Frequently Asked Questions

How many LeetCode questions do Google and X share?

Google and X share 45 LeetCode interview questions. 2260 problems appear only in Google's list and 6 appear only in X's list.

What topics overlap most between Google and X?

The most common shared topics between Google and X are Array (13 shared questions), String (9 shared questions), Hash Table (8 shared questions), Design (6 shared questions), Math (6 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Google or X?

Google has 601 Easy, 1205 Medium, and 499 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 Google and X?

Start with the 45 shared problems since they cover what both companies ask most often. Then add 20 Google-specific and 6 X-specific questions to round out your prep.

Explore More