Apple vs Yahoo Interview Questions

Apple lists 300 LeetCode interview questions while Yahoo lists 34. They share 26 problems — 9% of Apple's bank and 76% of Yahoo's. Focus on the overlap first, then drill into 274 Apple-only and 8 Yahoo-only questions.

Read the full Apple vs Yahoo preparation guide →

Overview

Apple

300 questions

Easy 76Medium 178Hard 46
Yahoo

34 questions

Easy 11Medium 20Hard 3

Preparation Strategy

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

Step 2 — Company-specific depth: Add Apple-specific problems like Number of Islands, Merge Intervals, Best Time to Buy and Sell Stock and Yahoo-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Apple
76
Yahoo
11
Medium
Apple
178
Yahoo
20
Hard
Apple
46
Yahoo
3

Top Shared Topics

26 Shared Questions

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

ProblemDifficulty
LRU CacheMedium
Two SumEasy
Longest Common PrefixEasy
Reverse Linked ListEasy
Top K Frequent ElementsMedium
Valid ParenthesesEasy
Spiral MatrixMedium
Meeting Rooms IIMedium
Subarray Sum Equals KMedium
Median of Two Sorted ArraysHard
Word BreakMedium
Peeking IteratorMedium
Maximum Depth of Binary TreeEasy
Flatten Nested List IteratorMedium
Serialize and Deserialize Binary TreeHard
Decode StringMedium
Search in Rotated Sorted ArrayMedium
Roman to IntegerEasy
Word SearchMedium
Combination SumMedium
Find Peak ElementMedium
Validate Binary Search TreeMedium
Shortest Path in Binary MatrixMedium
Contains DuplicateEasy
Longest Repeating Character ReplacementMedium
Evaluate DivisionMedium

Unique to Apple (274)

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

ProblemDifficulty
Number of IslandsMedium
Merge IntervalsMedium
Best Time to Buy and Sell StockEasy
Design Hit CounterMedium
Rotate ArrayMedium
Valid SudokuMedium
Group AnagramsMedium
Course Schedule IIMedium
Course ScheduleMedium
Longest Substring Without Repeating CharactersMedium
Product of Array Except SelfMedium
Valid PalindromeEasy

Unique to Yahoo (8)

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

ProblemDifficulty
Largest Palindrome ProductHard
Linked List CycleEasy
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium
Binary Number with Alternating BitsEasy
Palindrome NumberEasy
Restore IP AddressesMedium

Frequently Asked Questions

How many LeetCode questions do Apple and Yahoo share?

Apple and Yahoo share 26 LeetCode interview questions. 274 problems appear only in Apple's list and 8 appear only in Yahoo's list.

What topics overlap most between Apple and Yahoo?

The most common shared topics between Apple and Yahoo are Array (16 shared questions), String (9 shared questions), Hash Table (8 shared questions), Depth-First Search (6 shared questions), Design (4 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Apple or Yahoo?

Apple has 76 Easy, 178 Medium, and 46 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Apple has a higher proportion of Hard problems in its interview set.

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

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

Explore More