Goldman Sachs vs LinkedIn Interview Questions

Goldman Sachs lists 261 LeetCode interview questions while LinkedIn lists 141. They share 57 problems — 22% of Goldman Sachs's bank and 40% of LinkedIn's. Focus on the overlap first, then drill into 204 Goldman Sachs-only and 84 LinkedIn-only questions.

Read the full Goldman Sachs vs LinkedIn preparation guide →

Overview

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
LinkedIn

141 questions

Easy 25Medium 90Hard 26

Preparation Strategy

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

Step 2 — Company-specific depth: Add Goldman Sachs-specific problems like Trapping Rain Water, First Unique Character in a String, Fraction to Recurring Decimal and LinkedIn-specific problems from the exclusive lists below.

Step 3 — Difficulty tuning: LinkedIn skews harder in our data. Budget extra time for Hard problems if you are targeting that company.

Difficulty Comparison

Easy
Goldman Sachs
48
LinkedIn
25
Medium
Goldman Sachs
165
LinkedIn
90
Hard
Goldman Sachs
48
LinkedIn
26

Top Shared Topics

57 Shared Questions

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

ProblemDifficulty
Median of Two Sorted ArraysHard
LRU CacheMedium
Longest Substring Without Repeating CharactersMedium
Merge IntervalsMedium
Robot Bounded In CircleMedium
Number of IslandsMedium
Search in Rotated Sorted ArrayMedium
Best Time to Buy and Sell StockEasy
Two SumEasy
Design HashMapEasy
Maximum SubarrayMedium
Kth Largest Element in an ArrayMedium
Product of Array Except SelfMedium
Palindromic SubstringsMedium
Sqrt(x)Easy
Longest Palindromic SubstringMedium
Valid ParenthesesEasy
House RobberMedium
Maximum Profit in Job SchedulingHard
Max Area of IslandMedium
Pow(x, n)Medium
Course Schedule IIMedium
Minimum Window SubstringHard
Maximum Product SubarrayMedium
Merge k Sorted ListsHard
Number of Sub-arrays of Size K and Average Greater than or Equal to ThresholdMedium
Valid Triangle NumberMedium
Task SchedulerMedium
Merge Sorted ArrayEasy
Koko Eating BananasMedium

Showing top 30 of 57 shared problems.

Unique to Goldman Sachs (204)

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

ProblemDifficulty
Trapping Rain WaterHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Container With Most WaterMedium
String CompressionMedium
Find the Winner of the Circular GameMedium
Group AnagramsMedium
Decode WaysMedium
Find Minimum in Rotated Sorted ArrayMedium
Better Compression of StringMedium

Unique to LinkedIn (84)

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

ProblemDifficulty
Max StackHard
Nested List Weight Sum IIMedium
All O`one Data StructureHard
Nested List Weight SumMedium
Design Authentication ManagerMedium
Find Leaves of Binary TreeMedium
Shortest Word Distance IIMedium
Can Place FlowersEasy
Insert Delete GetRandom O(1)Medium
Binary Tree Upside DownMedium
Partition to K Equal Sum SubsetsMedium
Paint HouseMedium

Frequently Asked Questions

How many LeetCode questions do Goldman Sachs and LinkedIn share?

Goldman Sachs and LinkedIn share 57 LeetCode interview questions. 204 problems appear only in Goldman Sachs's list and 84 appear only in LinkedIn's list.

What topics overlap most between Goldman Sachs and LinkedIn?

The most common shared topics between Goldman Sachs and LinkedIn are Array (19 shared questions), Dynamic Programming (7 shared questions), Binary Search (6 shared questions), Hash Table (6 shared questions), String (6 shared questions). Mastering these areas prepares you for both companies.

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

Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. LinkedIn has 25 Easy, 90 Medium, and 26 Hard questions. LinkedIn has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Goldman Sachs and LinkedIn?

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

Explore More