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.

Read the full Goldman Sachs vs Yahoo preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
Yahoo

34 questions

Easy 11Medium 20Hard 3

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

Easy
Goldman Sachs
48
Yahoo
11
Medium
Goldman Sachs
165
Yahoo
20
Hard
Goldman Sachs
48
Yahoo
3

Top Shared Topics

20 Shared Questions

High-priority problems to practice for both Goldman Sachs and Yahoo.

ProblemDifficulty
Median of Two Sorted ArraysHard
LRU CacheMedium
Search in Rotated Sorted ArrayMedium
Two SumEasy
Top K Frequent ElementsMedium
Longest Repeating Character ReplacementMedium
Subarray Sum Equals KMedium
Valid ParenthesesEasy
Roman to IntegerEasy
Find Peak ElementMedium
Reverse Linked ListEasy
Spiral MatrixMedium
Linked List CycleEasy
Word SearchMedium
Decode StringMedium
Validate Binary Search TreeMedium
Word BreakMedium
Restore IP AddressesMedium
Shortest Path in Binary MatrixMedium
Evaluate DivisionMedium

Unique to Goldman Sachs (241)

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

ProblemDifficulty
Trapping Rain WaterHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Find the Winner of the Circular GameMedium
Merge IntervalsMedium
Robot Bounded In CircleMedium
Group AnagramsMedium

Unique to Yahoo (14)

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

ProblemDifficulty
Maximum Depth of Binary TreeEasy
Contains DuplicateEasy
Serialize and Deserialize Binary TreeHard
Largest Palindrome ProductHard
Matrix Cells in Distance OrderEasy
Non-decreasing SubsequencesMedium
Maximum Distance in ArraysMedium
Binary Number with Alternating BitsEasy
Peeking IteratorMedium
Combination SumMedium
Meeting Rooms IIMedium
Palindrome NumberEasy

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.

Explore More