Goldman Sachs vs MathWorks Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while MathWorks lists 29. They share 4 problems — 2% of Goldman Sachs's bank and 14% of MathWorks's. Focus on the overlap first, then drill into 257 Goldman Sachs-only and 25 MathWorks-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 4 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and MathWorks.
Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like Trapping Rain Water, Median of Two Sorted Arrays, First Unique Character in a String and MathWorks-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: MathWorks skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
4 Shared Questions
High-priority problems to practice for both Goldman Sachs and MathWorks.
| Problem | Difficulty |
|---|---|
| Longest Repeating Character Replacement | Medium |
| Binary Tree Cameras | Hard |
| Reverse Nodes in k-Group | Hard |
| Split Array Largest Sum | Hard |
Unique to Goldman Sachs (257)
Problems in Goldman Sachs's list that do not appear at MathWorks.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | Hard |
| 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 |
| LRU Cache | Medium |
| Container With Most Water | Medium |
| Longest Substring Without Repeating Characters | Medium |
| String Compression | Medium |
| Find the Winner of the Circular Game | Medium |
| Merge Intervals | Medium |
Unique to MathWorks (25)
Problems in MathWorks's list that do not appear at Goldman Sachs.
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and MathWorks share?
Goldman Sachs and MathWorks share 4 LeetCode interview questions. 257 problems appear only in Goldman Sachs's list and 25 appear only in MathWorks's list.
What topics overlap most between Goldman Sachs and MathWorks?
The most common shared topics between Goldman Sachs and MathWorks are Dynamic Programming (2 shared questions), Hash Table (1 shared questions), String (1 shared questions), Sliding Window (1 shared questions), Tree (1 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Goldman Sachs or MathWorks?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. MathWorks has 5 Easy, 13 Medium, and 11 Hard questions. MathWorks has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and MathWorks?
Start with the 4 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 MathWorks-specific questions to round out your prep.