X vs Yahoo Interview Questions
X lists 51 LeetCode interview questions while Yahoo lists 34. They share 4 problems — 8% of X's bank and 12% of Yahoo's. Focus on the overlap first, then drill into 47 X-only and 30 Yahoo-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 4 overlapping problems first. These are the highest-yield questions for candidates interviewing at both X and Yahoo.
Step 2 — Company-specific depth: Add X-specific problems like Trapping Rain Water, Merge Intervals, Tweet Counts Per Frequency and Yahoo-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
4 Shared Questions
High-priority problems to practice for both X and Yahoo.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Flatten Nested List Iterator | Medium |
| Valid Parentheses | Easy |
| Reverse Linked List | Easy |
Unique to X (47)
Problems in X's list that do not appear at Yahoo.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Merge Intervals | Medium |
| Tweet Counts Per Frequency | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Insert Delete GetRandom O(1) | Medium |
| Design Twitter | Medium |
| Binary Gap | Easy |
| Regular Expression Matching | Hard |
| Integer to Roman | Medium |
| Word Break II | Hard |
| Alien Dictionary | Hard |
| Time Needed to Buy Tickets | Easy |
Unique to Yahoo (30)
Problems in Yahoo's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Two Sum | Easy |
| Maximum Depth of Binary Tree | Easy |
| Contains Duplicate | Easy |
| Serialize and Deserialize Binary Tree | Hard |
| Largest Palindrome Product | Hard |
| Median of Two Sorted Arrays | Hard |
| Roman to Integer | Easy |
| Word Break | Medium |
| Linked List Cycle | Easy |
| Matrix Cells in Distance Order | Easy |
| Non-decreasing Subsequences | Medium |
| Maximum Distance in Arrays | Medium |
Frequently Asked Questions
How many LeetCode questions do X and Yahoo share?
X and Yahoo share 4 LeetCode interview questions. 47 problems appear only in X's list and 30 appear only in Yahoo's list.
What topics overlap most between X and Yahoo?
The most common shared topics between X and Yahoo are Linked List (2 shared questions), Design (2 shared questions), Stack (2 shared questions), Hash Table (1 shared questions), Doubly-Linked List (1 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: X or Yahoo?
X has 8 Easy, 31 Medium, and 12 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. X has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both X and Yahoo?
Start with the 4 shared problems since they cover what both companies ask most often. Then add 20 X-specific and 20 Yahoo-specific questions to round out your prep.