Goldman Sachs vs X Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while X lists 51. They share 11 problems — 4% of Goldman Sachs's bank and 22% of X's. Focus on the overlap first, then drill into 250 Goldman Sachs-only and 40 X-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 11 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and X.
Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like Median of Two Sorted Arrays, First Unique Character in a String, Fraction to Recurring Decimal and X-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: X skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
11 Shared Questions
High-priority problems to practice for both Goldman Sachs and X.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| LRU Cache | Medium |
| Merge Intervals | Medium |
| Pascal's Triangle | Easy |
| Valid Parentheses | Easy |
| The Skyline Problem | Hard |
| Reverse Linked List | Easy |
| Merge k Sorted Lists | Hard |
| Integer to Roman | Medium |
| Remove All Occurrences of a Substring | Medium |
| Implement Trie (Prefix Tree) | Medium |
Unique to Goldman Sachs (250)
Problems in Goldman Sachs's list that do not appear at X.
| Problem | Difficulty |
|---|---|
| Median of Two Sorted Arrays | 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 |
| Robot Bounded In Circle | Medium |
| Group Anagrams | Medium |
| Decode Ways | Medium |
Unique to X (40)
Problems in X's list that do not appear at Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Tweet Counts Per Frequency | Medium |
| Flatten Nested List Iterator | Medium |
| Insert Delete GetRandom O(1) | Medium |
| Design Twitter | Medium |
| Binary Gap | Easy |
| Regular Expression Matching | Hard |
| Word Break II | Hard |
| Alien Dictionary | Hard |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| Trapping Rain Water II | Hard |
| Finding the Users Active Minutes | Medium |
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and X share?
Goldman Sachs and X share 11 LeetCode interview questions. 250 problems appear only in Goldman Sachs's list and 40 appear only in X's list.
What topics overlap most between Goldman Sachs and X?
The most common shared topics between Goldman Sachs and X are Array (4 shared questions), String (4 shared questions), Stack (3 shared questions), Hash Table (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 X?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. X has 8 Easy, 31 Medium, and 12 Hard questions. X has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and X?
Start with the 11 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 X-specific questions to round out your prep.