Goldman Sachs vs Microsoft Interview Questions

Goldman Sachs lists 261 LeetCode interview questions while Microsoft lists 192. They share 102 problems — 39% of Goldman Sachs's bank and 53% of Microsoft's. Focus on the overlap first, then drill into 159 Goldman Sachs-only and 90 Microsoft-only questions.

Read the full Goldman Sachs vs Microsoft preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
Microsoft

192 questions

Easy 55Medium 109Hard 28

Preparation Strategy

Step 1 — Shared core: Solve the 102 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and Microsoft.

Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like First Unique Character in a String, Fraction to Recurring Decimal, High Five and Microsoft-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

Easy
Goldman Sachs
48
Microsoft
55
Medium
Goldman Sachs
165
Microsoft
109
Hard
Goldman Sachs
48
Microsoft
28

Top Shared Topics

102 Shared Questions

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

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
Minimum Path SumMedium
LRU CacheMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
Merge IntervalsMedium
Group AnagramsMedium
Decode WaysMedium
Number of IslandsMedium
Search in Rotated Sorted ArrayMedium
Best Time to Buy and Sell StockEasy
Find Minimum in Rotated Sorted ArrayMedium
Best Time to Buy and Sell Stock IIMedium
Two SumEasy
Maximum SubarrayMedium
Kth Largest Element in an ArrayMedium
Product of Array Except SelfMedium
Sliding Window MaximumHard
Jump GameMedium
3SumMedium
Sqrt(x)Easy
N-QueensHard
Subarray Sum Equals KMedium
Longest Palindromic SubstringMedium
Daily TemperaturesMedium
Unique PathsMedium
String to Integer (atoi)Medium
Valid ParenthesesEasy
House RobberMedium

Showing top 30 of 102 shared problems.

Unique to Goldman Sachs (159)

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

ProblemDifficulty
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
String CompressionMedium
Find the Winner of the Circular GameMedium
Robot Bounded In CircleMedium
Better Compression of StringMedium
Knight Probability in ChessboardMedium
Pairs of Songs With Total Durations Divisible by 60Medium
Robot Return to OriginEasy
Valid Arrangement of PairsHard
Design HashMapEasy

Unique to Microsoft (90)

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

ProblemDifficulty
Palindrome NumberEasy
Longest Common PrefixEasy
Create Hello World FunctionEasy
Reverse IntegerMedium
Minimum Edge Reversals So Every Node Is ReachableHard
K-th Smallest in Lexicographical OrderHard
Max Consecutive OnesEasy
Recyclable and Low Fat ProductsEasy
Remove ElementEasy
Rotate ArrayMedium
Combination SumMedium
Find the Index of the First Occurrence in a StringEasy

Frequently Asked Questions

How many LeetCode questions do Goldman Sachs and Microsoft share?

Goldman Sachs and Microsoft share 102 LeetCode interview questions. 159 problems appear only in Goldman Sachs's list and 90 appear only in Microsoft's list.

What topics overlap most between Goldman Sachs and Microsoft?

The most common shared topics between Goldman Sachs and Microsoft are Array (22 shared questions), Dynamic Programming (10 shared questions), String (6 shared questions), Hash Table (5 shared questions), Two Pointers (4 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Goldman Sachs or Microsoft?

Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. Microsoft has 55 Easy, 109 Medium, and 28 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 Microsoft?

Start with the 102 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 20 Microsoft-specific questions to round out your prep.

Explore More