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

X

51 questions

Easy 8Medium 31Hard 12
Yahoo

34 questions

Easy 11Medium 20Hard 3

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

Easy
X
8
Yahoo
11
Medium
X
31
Yahoo
20
Hard
X
12
Yahoo
3

Top Shared Topics

4 Shared Questions

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

ProblemDifficulty
LRU CacheMedium
Flatten Nested List IteratorMedium
Valid ParenthesesEasy
Reverse Linked ListEasy

Unique to X (47)

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

ProblemDifficulty
Trapping Rain WaterHard
Merge IntervalsMedium
Tweet Counts Per FrequencyMedium
Implement Trie (Prefix Tree)Medium
Insert Delete GetRandom O(1)Medium
Design TwitterMedium
Binary GapEasy
Regular Expression MatchingHard
Integer to RomanMedium
Word Break IIHard
Alien DictionaryHard
Time Needed to Buy TicketsEasy

Unique to Yahoo (30)

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

ProblemDifficulty
Two SumEasy
Maximum Depth of Binary TreeEasy
Contains DuplicateEasy
Serialize and Deserialize Binary TreeHard
Largest Palindrome ProductHard
Median of Two Sorted ArraysHard
Roman to IntegerEasy
Word BreakMedium
Linked List CycleEasy
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium

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.

Explore More