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

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
MathWorks

29 questions

Easy 5Medium 13Hard 11

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

Easy
Goldman Sachs
48
MathWorks
5
Medium
Goldman Sachs
165
MathWorks
13
Hard
Goldman Sachs
48
MathWorks
11

Top Shared Topics

4 Shared Questions

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

ProblemDifficulty
Longest Repeating Character ReplacementMedium
Binary Tree CamerasHard
Reverse Nodes in k-GroupHard
Split Array Largest SumHard

Unique to Goldman Sachs (257)

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

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
String CompressionMedium
Find the Winner of the Circular GameMedium
Merge IntervalsMedium

Unique to MathWorks (25)

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

ProblemDifficulty
Count Subarrays With Fixed BoundsHard
Maximum Number of AlloysMedium
Sell Diminishing-Valued Colored BallsMedium
Total Cost to Hire K WorkersMedium
Reshape the MatrixEasy
Shopping OffersMedium
Earliest Second to Mark Indices IMedium
Earliest Second to Mark Indices IIHard
Maximum Palindromes After OperationsMedium
Keyboard RowEasy
Last Substring in Lexicographical OrderHard
Count AnagramsHard

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.

Explore More