Oracle vs Yahoo Interview Questions
Oracle lists 314 LeetCode interview questions while Yahoo lists 34. They share 24 problems — 8% of Oracle's bank and 71% of Yahoo's. Focus on the overlap first, then drill into 290 Oracle-only and 10 Yahoo-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 24 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Oracle and Yahoo.
Step 2 — Company-specific depth: Add Oracle-specific problems like Longest Substring Without Repeating Characters, Number of Islands, Group Anagrams and Yahoo-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Oracle skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
24 Shared Questions
High-priority problems to practice for both Oracle and Yahoo.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| Two Sum | Easy |
| Top K Frequent Elements | Medium |
| Valid Parentheses | Easy |
| Meeting Rooms II | Medium |
| Spiral Matrix | Medium |
| Search in Rotated Sorted Array | Medium |
| Reverse Linked List | Easy |
| Roman to Integer | Easy |
| Decode String | Medium |
| Longest Common Prefix | Easy |
| Median of Two Sorted Arrays | Hard |
| Restore IP Addresses | Medium |
| Subarray Sum Equals K | Medium |
| Validate Binary Search Tree | Medium |
| Word Search | Medium |
| Palindrome Number | Easy |
| Linked List Cycle | Easy |
| Word Break | Medium |
| Contains Duplicate | Easy |
| Find Peak Element | Medium |
| Serialize and Deserialize Binary Tree | Hard |
| Maximum Depth of Binary Tree | Easy |
| Combination Sum | Medium |
Unique to Oracle (290)
Problems in Oracle's list that do not appear at Yahoo.
| Problem | Difficulty |
|---|---|
| Longest Substring Without Repeating Characters | Medium |
| Number of Islands | Medium |
| Group Anagrams | Medium |
| Sliding Window Maximum | Hard |
| Merge k Sorted Lists | Hard |
| Merge Intervals | Medium |
| Longest Palindromic Substring | Medium |
| Minimum One Bit Operations to Make Integers Zero | Hard |
| LFU Cache | Hard |
| Asteroid Collision | Medium |
| Remove All Adjacent Duplicates in String II | Medium |
| Container With Most Water | Medium |
Unique to Yahoo (10)
Problems in Yahoo's list that do not appear at Oracle.
| Problem | Difficulty |
|---|---|
| Largest Palindrome Product | Hard |
| Matrix Cells in Distance Order | Easy |
| Non-decreasing Subsequences | Medium |
| Maximum Distance in Arrays | Medium |
| Binary Number with Alternating Bits | Easy |
| Peeking Iterator | Medium |
| Longest Repeating Character Replacement | Medium |
| Shortest Path in Binary Matrix | Medium |
| Evaluate Division | Medium |
| Flatten Nested List Iterator | Medium |
Frequently Asked Questions
How many LeetCode questions do Oracle and Yahoo share?
Oracle and Yahoo share 24 LeetCode interview questions. 290 problems appear only in Oracle's list and 10 appear only in Yahoo's list.
What topics overlap most between Oracle and Yahoo?
The most common shared topics between Oracle and Yahoo are Array (13 shared questions), Hash Table (8 shared questions), String (8 shared questions), Depth-First Search (4 shared questions), Linked List (3 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Oracle or Yahoo?
Oracle has 61 Easy, 194 Medium, and 59 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Oracle has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Oracle and Yahoo?
Start with the 24 shared problems since they cover what both companies ask most often. Then add 20 Oracle-specific and 10 Yahoo-specific questions to round out your prep.