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.
Overview
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
Top Shared Topics
26 Shared Questions
High-priority problems to practice for both Apple and Yahoo.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Two Sum | Easy |
| Longest Common Prefix | Easy |
| Reverse Linked List | Easy |
| Top K Frequent Elements | Medium |
| Valid Parentheses | Easy |
| Spiral Matrix | Medium |
| Meeting Rooms II | Medium |
| Subarray Sum Equals K | Medium |
| Median of Two Sorted Arrays | Hard |
| Word Break | Medium |
| Peeking Iterator | Medium |
| Maximum Depth of Binary Tree | Easy |
| Flatten Nested List Iterator | Medium |
| Serialize and Deserialize Binary Tree | Hard |
| Decode String | Medium |
| Search in Rotated Sorted Array | Medium |
| Roman to Integer | Easy |
| Word Search | Medium |
| Combination Sum | Medium |
| Find Peak Element | Medium |
| Validate Binary Search Tree | Medium |
| Shortest Path in Binary Matrix | Medium |
| Contains Duplicate | Easy |
| Longest Repeating Character Replacement | Medium |
| Evaluate Division | Medium |
Unique to Apple (274)
Problems in Apple's list that do not appear at Yahoo.
| Problem | Difficulty |
|---|---|
| Number of Islands | Medium |
| Merge Intervals | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Design Hit Counter | Medium |
| Rotate Array | Medium |
| Valid Sudoku | Medium |
| Group Anagrams | Medium |
| Course Schedule II | Medium |
| Course Schedule | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Product of Array Except Self | Medium |
| Valid Palindrome | Easy |
Unique to Yahoo (8)
Problems in Yahoo's list that do not appear at Apple.
| Problem | Difficulty |
|---|---|
| Largest Palindrome Product | Hard |
| Linked List Cycle | Easy |
| Matrix Cells in Distance Order | Easy |
| Non-decreasing Subsequences | Medium |
| Maximum Distance in Arrays | Medium |
| Binary Number with Alternating Bits | Easy |
| Palindrome Number | Easy |
| Restore IP Addresses | Medium |
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.