Twitter vs Yahoo Interview Questions

Twitter lists 53 LeetCode interview questions while Yahoo lists 34. They share 4 problems — 8% of Twitter's bank and 12% of Yahoo's. Focus on the overlap first, then drill into 49 Twitter-only and 30 Yahoo-only questions.

Read the full Twitter vs Yahoo preparation guide →

Overview

Twitter

53 questions

Easy 8Medium 33Hard 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 Twitter and Yahoo.

Step 2 — Company-specific depth: Add Twitter-specific problems like Regular Expression Matching, Integer to Roman, Merge k Sorted Lists and Yahoo-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: Twitter skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Twitter
8
Yahoo
11
Medium
Twitter
33
Yahoo
20
Hard
Twitter
12
Yahoo
3

Top Shared Topics

4 Shared Questions

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

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

Unique to Twitter (49)

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

ProblemDifficulty
Regular Expression MatchingHard
Integer to RomanMedium
Merge k Sorted ListsHard
Trapping Rain WaterHard
Multiply StringsMedium
Wildcard MatchingHard
Merge IntervalsMedium
Permutation SequenceHard
Pascal's TriangleEasy
Word Break IIHard
Time Needed to Buy TicketsEasy
Max Points on a LineHard

Unique to Yahoo (30)

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

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 Twitter and Yahoo share?

Twitter and Yahoo share 4 LeetCode interview questions. 49 problems appear only in Twitter's list and 30 appear only in Yahoo's list.

What topics overlap most between Twitter and Yahoo?

The most common shared topics between Twitter and Yahoo are Stack (2 shared questions), Linked List (2 shared questions), Design (2 shared questions), String (1 shared questions), Hash Table (1 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Twitter or Yahoo?

Twitter has 8 Easy, 33 Medium, and 12 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Twitter has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Twitter and Yahoo?

Start with the 4 shared problems since they cover what both companies ask most often. Then add 20 Twitter-specific and 20 Yahoo-specific questions to round out your prep.

Explore More