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.
Overview
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
Top Shared Topics
45 Shared Questions
High-priority problems to practice for both Goldman Sachs and IBM.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| Median of Two Sorted Arrays | Hard |
| LRU Cache | Medium |
| Longest Substring Without Repeating Characters | Medium |
| String Compression | Medium |
| Merge Intervals | Medium |
| Group Anagrams | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Find Minimum in Rotated Sorted Array | Medium |
| Two Sum | Easy |
| Maximum Subarray | Medium |
| Range Product Queries of Powers | Medium |
| Product of Array Except Self | Medium |
| Backspace String Compare | Easy |
| 3Sum | Medium |
| N-Queens | Hard |
| Subarray Sum Equals K | Medium |
| Longest Palindromic Substring | Medium |
| Valid Parentheses | Easy |
| Generate Parentheses | Medium |
| Roman to Integer | Easy |
| Longest Consecutive Sequence | Medium |
| Spiral Matrix | Medium |
| Climbing Stairs | Easy |
| Task Scheduler | Medium |
| Merge Sorted Array | Easy |
| Gas Station | Medium |
| Letter Combinations of a Phone Number | Medium |
| Next Permutation | Medium |
| Count Number of Teams | Medium |
Showing top 30 of 45 shared problems.
Unique to Goldman Sachs (216)
Problems in Goldman Sachs's list that do not appear at IBM.
| Problem | Difficulty |
|---|---|
| First Unique Character in a String | Easy |
| Fraction to Recurring Decimal | Medium |
| High Five | Easy |
| Minimum Path Sum | Medium |
| Container With Most Water | Medium |
| Find the Winner of the Circular Game | Medium |
| Robot Bounded In Circle | Medium |
| Decode Ways | Medium |
| Number of Islands | Medium |
| Search in Rotated Sorted Array | Medium |
| Better Compression of String | Medium |
| Knight Probability in Chessboard | Medium |
Unique to IBM (70)
Problems in IBM's list that do not appear at Goldman Sachs.
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.