Goldman Sachs vs MongoDB Interview Questions
Goldman Sachs lists 261 LeetCode interview questions while MongoDB lists 24. They share 13 problems — 5% of Goldman Sachs's bank and 54% of MongoDB's. Focus on the overlap first, then drill into 248 Goldman Sachs-only and 11 MongoDB-only questions.
Overview
Preparation Strategy
Step 1 — Shared core: Solve the 13 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Goldman Sachs and MongoDB.
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 MongoDB-specific problems from the exclusive lists below.
Step 3 — Difficulty tuning: MongoDB skews harder in our data. Budget extra time for Hard problems if you are targeting that company.
Difficulty Comparison
Top Shared Topics
13 Shared Questions
High-priority problems to practice for both Goldman Sachs and MongoDB.
| Problem | Difficulty |
|---|---|
| LRU Cache | Medium |
| String Compression | Medium |
| Merge Intervals | Medium |
| Search in Rotated Sorted Array | Medium |
| Sliding Window Maximum | Hard |
| Course Schedule II | Medium |
| Merge k Sorted Lists | Hard |
| Merge Two Sorted Lists | Easy |
| Word Break | Medium |
| Text Justification | Hard |
| Snapshot Array | Medium |
| Implement Trie (Prefix Tree) | Medium |
| Lowest Common Ancestor of a Binary Tree | Medium |
Unique to Goldman Sachs (248)
Problems in Goldman Sachs's list that do not appear at MongoDB.
| 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 |
| Container With Most Water | Medium |
| Longest Substring Without Repeating Characters | Medium |
| Find the Winner of the Circular Game | Medium |
| Robot Bounded In Circle | Medium |
| Group Anagrams | Medium |
| Decode Ways | Medium |
Unique to MongoDB (11)
Problems in MongoDB's list that do not appear at Goldman Sachs.
| Problem | Difficulty |
|---|---|
| Intersection of Two Arrays | Easy |
| Convert JSON String to Object | Hard |
| Insert Interval | Medium |
| Web Crawler Multithreaded | Medium |
| Stock Price Fluctuation | Medium |
| Merge Two Binary Trees | Easy |
| Design Search Autocomplete System | Hard |
| Lowest Common Ancestor of a Binary Tree III | Medium |
| Word Break II | Hard |
| Clone Graph | Medium |
| Time Based Key-Value Store | Medium |
Frequently Asked Questions
How many LeetCode questions do Goldman Sachs and MongoDB share?
Goldman Sachs and MongoDB share 13 LeetCode interview questions. 248 problems appear only in Goldman Sachs's list and 11 appear only in MongoDB's list.
What topics overlap most between Goldman Sachs and MongoDB?
The most common shared topics between Goldman Sachs and MongoDB are Array (6 shared questions), Hash Table (4 shared questions), String (4 shared questions), Linked List (3 shared questions), Design (3 shared questions). Mastering these areas prepares you for both companies.
Which company asks harder LeetCode questions: Goldman Sachs or MongoDB?
Goldman Sachs has 48 Easy, 165 Medium, and 48 Hard questions. MongoDB has 3 Easy, 15 Medium, and 6 Hard questions. MongoDB has a higher proportion of Hard problems in its interview set.
How should I prepare if interviewing at both Goldman Sachs and MongoDB?
Start with the 13 shared problems since they cover what both companies ask most often. Then add 20 Goldman Sachs-specific and 11 MongoDB-specific questions to round out your prep.