Goldman Sachs vs Twitter Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while Twitter lists 53. They share 12 problems — 5% of Goldman Sachs's bank and 23% of Twitter's. Focus on the overlap first, then drill into 249 Goldman Sachs-only and 41 Twitter-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 12 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and Twitter.
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 Twitter-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: Twitter skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
12 Shared Questions
High-priority problems to practice for both Goldman Sachs and Twitter.
| 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 |
| Rotting Oranges | Medium |
| 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 (249)
Problems in Goldman Sachs's list that do not appear at Twitter.
| 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 Twitter (41)
Problems in Twitter's list that do not appear at Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Regular Expression Matching | Hard |
| Multiply Strings | Medium |
| Wildcard Matching | Hard |
| Permutation Sequence | Hard |
| Word Break II | Hard |
| Time Needed to Buy Tickets | Easy |
| Max Points on a Line | Hard |
| One Edit Distance | Medium |
| Happy Number | Easy |
| Lowest Common Ancestor of a Binary Search Tree | Medium |
| Flatten 2D Vector | Medium |
| Alien Dictionary | Hard |
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and Twitter share?
Goldman Sachs and Twitter share 12 LeetCode interview questions. 249 problems appear only in Goldman Sachs's list and 41 appear only in Twitter's list.
What topics overlap most between Goldman Sachs and Twitter?
The most common shared topics between Goldman Sachs and Twitter are Array (5 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 Twitter?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. Twitter has 8 Easy, 33 Medium, and 12 Hard questions. Twitter has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and Twitter?
Start with the 12 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 Twitter-specific questions to round out your prep.