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

Goldman Sachs

261 questions

Easy 48Medium 165Hard 48
MongoDB

24 questions

Easy 3Medium 15Hard 6

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

Easy
Goldman Sachs
48
MongoDB
3
Medium
Goldman Sachs
165
MongoDB
15
Hard
Goldman Sachs
48
MongoDB
6

Top Shared Topics

13 Shared Questions

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

ProblemDifficulty
LRU CacheMedium
String CompressionMedium
Merge IntervalsMedium
Search in Rotated Sorted ArrayMedium
Sliding Window MaximumHard
Course Schedule IIMedium
Merge k Sorted ListsHard
Merge Two Sorted ListsEasy
Word BreakMedium
Text JustificationHard
Snapshot ArrayMedium
Implement Trie (Prefix Tree)Medium
Lowest Common Ancestor of a Binary TreeMedium

Unique to Goldman Sachs (248)

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

ProblemDifficulty
Trapping Rain WaterHard
Median of Two Sorted ArraysHard
First Unique Character in a StringEasy
Fraction to Recurring DecimalMedium
High FiveEasy
Minimum Path SumMedium
Container With Most WaterMedium
Longest Substring Without Repeating CharactersMedium
Find the Winner of the Circular GameMedium
Robot Bounded In CircleMedium
Group AnagramsMedium
Decode WaysMedium

Unique to MongoDB (11)

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

ProblemDifficulty
Intersection of Two ArraysEasy
Convert JSON String to ObjectHard
Insert IntervalMedium
Web Crawler MultithreadedMedium
Stock Price FluctuationMedium
Merge Two Binary TreesEasy
Design Search Autocomplete SystemHard
Lowest Common Ancestor of a Binary Tree IIIMedium
Word Break IIHard
Clone GraphMedium
Time Based Key-Value StoreMedium

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.

Explore More