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.
Overview
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
Top Shared Topics
57 Shared Questions
High-priority problems to practice for both Goldman Sachs and LinkedIn.
| Problem | Difficulty |
|---|---|
| Median of Two Sorted Arrays | Hard |
| LRU Cache | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Merge Intervals | Medium |
| Robot Bounded In Circle | Medium |
| Number of Islands | Medium |
| Search in Rotated Sorted Array | Medium |
| Best Time to Buy and Sell Stock | Easy |
| Two Sum | Easy |
| Design HashMap | Easy |
| Maximum Subarray | Medium |
| Kth Largest Element in an Array | Medium |
| Product of Array Except Self | Medium |
| Palindromic Substrings | Medium |
| Sqrt(x) | Easy |
| Longest Palindromic Substring | Medium |
| Valid Parentheses | Easy |
| House Robber | Medium |
| Maximum Profit in Job Scheduling | Hard |
| Max Area of Island | Medium |
| Pow(x, n) | Medium |
| Course Schedule II | Medium |
| Minimum Window Substring | Hard |
| Maximum Product Subarray | Medium |
| Merge k Sorted Lists | Hard |
| Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold | Medium |
| Valid Triangle Number | Medium |
| Task Scheduler | Medium |
| Merge Sorted Array | Easy |
| Koko Eating Bananas | Medium |
Showing top 30 of 57 shared problems.
Unique to Goldman Sachs (204)
Problems in Goldman Sachs's list that do not appear at LinkedIn.
| Problem | Difficulty |
|---|---|
| Trapping Rain Water | 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 |
| String Compression | Medium |
| Find the Winner of the Circular Game | Medium |
| Group Anagrams | Medium |
| Decode Ways | Medium |
| Find Minimum in Rotated Sorted Array | Medium |
| Better Compression of String | Medium |
Unique to LinkedIn (84)
Problems in LinkedIn's list that do not appear at Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Max Stack | Hard |
| Nested List Weight Sum II | Medium |
| All O`one Data Structure | Hard |
| Nested List Weight Sum | Medium |
| Design Authentication Manager | Medium |
| Find Leaves of Binary Tree | Medium |
| Shortest Word Distance II | Medium |
| Can Place Flowers | Easy |
| Insert Delete GetRandom O(1) | Medium |
| Binary Tree Upside Down | Medium |
| Partition to K Equal Sum Subsets | Medium |
| Paint House | Medium |
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.