Goldman Sachs vs IBM Interview Questions

Goldman Sachs lists 261 LeetCode interview questions while IBM lists 115. They share 45 problems — 17% of Goldman Sachs's bank and 39% of IBM's. Focus on the overlap first, then drill into 216 Goldman Sachs-only and 70 IBM-only questions.

Read the full Goldman Sachs vs IBM preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
IBM

115 questions

Easy 33Medium 73Hard 9

Preparation Strategy

Step 1 — Shared core: Solve the 45 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and IBM.

Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like First Unique Character in a String, Fraction to Recurring Decimal, High Five and IBM-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
IBM
33
Medium
Goldman Sachs
165
IBM
73
Hard
Goldman Sachs
48
IBM
9

Top Shared Topics

45 Shared Questions

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

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
LRU CacheMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Merge IntervalsMedium
Group AnagramsMedium
Best Time to Buy and Sell StockEasy
Find Minimum in Rotated Sorted ArrayMedium
Two SumEasy
Maximum SubarrayMedium
Range Product Queries of PowersMedium
Product of Array Except SelfMedium
Backspace String CompareEasy
3SumMedium
N-QueensHard
Subarray Sum Equals KMedium
Longest Palindromic SubstringMedium
Valid ParenthesesEasy
Generate ParenthesesMedium
Roman to IntegerEasy
Longest Consecutive SequenceMedium
Spiral MatrixMedium
Climbing StairsEasy
Task SchedulerMedium
Merge Sorted ArrayEasy
Gas StationMedium
Letter Combinations of a Phone NumberMedium
Next PermutationMedium
Count Number of TeamsMedium

Showing top 30 of 45 shared problems.

Unique to Goldman Sachs (216)

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

ProblemDifficulty
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Container With Most WaterMedium
Find the Winner of the Circular GameMedium
Robot Bounded In CircleMedium
Decode WaysMedium
Number of IslandsMedium
Search in Rotated Sorted ArrayMedium
Better Compression of StringMedium
Knight Probability in ChessboardMedium

Unique to IBM (70)

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

ProblemDifficulty
Find the Smallest Divisor Given a ThresholdMedium
Gray CodeMedium
Exclusive Time of FunctionsMedium
Minimum Operations to Make Columns Strictly IncreasingEasy
Count Ways to Group Overlapping RangesMedium
Meeting Rooms IIMedium
Minimum Absolute DifferenceEasy
Minimum Operations to Make All Array Elements EqualMedium
Number of Divisible Triplet SumsMedium
Minimum Operations to Make Median of Array Equal to KMedium
The kth Factor of nMedium
Activity ParticipantsMedium

Frequently Asked Questions

How many LeetCode questions do Goldman Sachs and IBM share?

Goldman Sachs and IBM share 45 LeetCode interview questions. 216 problems appear only in Goldman Sachs's list and 70 appear only in IBM's list.

What topics overlap most between Goldman Sachs and IBM?

The most common shared topics between Goldman Sachs and IBM are Array (20 shared questions), Hash Table (9 shared questions), String (9 shared questions), Two Pointers (7 shared questions), Dynamic Programming (7 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Goldman Sachs or IBM?

Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. IBM has 33 Easy, 73 Medium, and 9 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 IBM?

Start with the 45 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 IBM-specific questions to round out your prep.

Explore More