Goldman Sachs vs Yahoo Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while Yahoo lists 34. They share 20 problems — 8% of Goldman Sachs's bank and 59% of Yahoo's. Focus on the overlap first, then drill into 241 Goldman Sachs-only and 14 Yahoo-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 20 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and Yahoo.
Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like Trapping Rain Water, First Unique Character in a String, Fraction to Recurring Decimal and Yahoo-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Goldman Sachs skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
20 Shared Questions
High-priority problems to practice for both Goldman Sachs and Yahoo.
| Problem | Difficulty |
|---|---|
| Median of Two Sorted Arrays | Hard |
| LRU Cache | Medium |
| Search in Rotated Sorted Array | Medium |
| Two Sum | Easy |
| Top K Frequent Elements | Medium |
| Longest Repeating Character Replacement | Medium |
| Subarray Sum Equals K | Medium |
| Valid Parentheses | Easy |
| Roman to Integer | Easy |
| Find Peak Element | Medium |
| Reverse Linked List | Easy |
| Spiral Matrix | Medium |
| Linked List Cycle | Easy |
| Word Search | Medium |
| Decode String | Medium |
| Validate Binary Search Tree | Medium |
| Word Break | Medium |
| Restore IP Addresses | Medium |
| Shortest Path in Binary Matrix | Medium |
| Evaluate Division | Medium |
Unique to Goldman Sachs (241)
Problems in Goldman Sachs's list that do not appear at Yahoo.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| First Unique Character in a String | Easy |
| Fraction to Recurring Decimal | Medium |
| High Five | Easy |
| Minimum Path Sum | Medium |
| Container With Most Water | Medium |
| Longest Substring Without Repeating Characters | Medium |
| String Compression | Medium |
| Find the Winner of the Circular Game | Medium |
| Merge Intervals | Medium |
| Robot Bounded In Circle | Medium |
| Group Anagrams | Medium |
Unique to Yahoo (14)
Problems in Yahoo's list that do not appear at Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Maximum Depth of Binary Tree | Easy |
| Contains Duplicate | Easy |
| Serialize and Deserialize Binary Tree | Hard |
| 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 |
| Combination Sum | Medium |
| Meeting Rooms II | Medium |
| Palindrome Number | Easy |
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and Yahoo share?
Goldman Sachs and Yahoo share 20 LeetCode interview questions. 241 problems appear only in Goldman Sachs's list and 14 appear only in Yahoo's list.
What topics overlap most between Goldman Sachs and Yahoo?
The most common shared topics between Goldman Sachs and Yahoo are Array (11 shared questions), Hash Table (8 shared questions), String (8 shared questions), Binary Search (3 shared questions), Linked List (3 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Goldman Sachs or Yahoo?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. Yahoo has 11 Easy, 20 Medium, and 3 Hard questions. Goldman Sachs has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and Yahoo?
Start with the 20 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 14 Yahoo-specific questions to round out your prep.