0 day streak

MongoDB coding interview questions

Enterprise SaaS Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Logger Rate LimiterHash Map + Array Easy Design Data Structures Google, Netflix, Tesla +17 Solve
Binary Tree Maximum Path SumPostorder + Multiple Return Values Hard Trees & BST Google, Amazon, Meta +29 Solve
Task SchedulerGreedy Medium Arrays & Hashing Amazon, Uber, Snowflake +18 Solve
Implement Trie (Prefix Tree)Basics Medium Tries Google, Microsoft, Meta +25 Solve
Snapshot ArrayBasics Medium Binary Search Google, Apple, Netflix +9 Solve
Intersection of Two ArraysTwo Pointer Easy Arrays & Hashing Meta, Lyft, Indeed +13 Solve
Word Break1D DP Medium Dynamic Programming Google, Amazon, Microsoft +35 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, LinkedIn +28 Solve
Web Crawler MultithreadedBFS / DFS Basics Medium Graphs Snowflake, Rubrik, Dropbox +1 Solve
Course Schedule IITopological Sort Medium Graphs Google, Amazon, Meta +42 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Design Search Autocomplete SystemBasics Hard Tries Google, Netflix, Spotify +5 Solve
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Uber +25 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Two SumTwo Sum Easy Arrays & Hashing Google, Amazon, Microsoft +135 Solve
Insert IntervalBasics Medium Intervals Google, Apple, LinkedIn +6 Solve
Merge Two Binary TreesRecursion Easy Trees & BST LinkedIn, Huawei, Druva +1 Solve
Stock Price FluctuationAdvanced Medium Heaps Atlassian, Urban Company Solve
Sliding Window MaximumMonotonic Stack Hard Monotonic Stack Google, Amazon, Microsoft +51 Solve
Lowest Common Ancestor of a Binary Tree IIILCA Medium Trees & BST Meta, LinkedIn, Spotify +2 Solve
String CompressionTwo Pointer Medium Arrays & Hashing Microsoft, Stripe, Nvidia +34 Solve
Clone GraphBFS / DFS Basics Medium Graphs Google, Microsoft, Meta +11 Solve
Compare Version NumbersString Basics Medium Arrays & Hashing Block (Square), Arista Networks, Zoho Solve
Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitSliding Window · Variable Medium Arrays & Hashing Uber, Datadog, Moloco +6 Solve
Course ScheduleTopological Sort Medium Graphs Google, Amazon, Microsoft +42 Solve
Search in Rotated Sorted ArrayRotated Array Medium Binary Search Amazon, Microsoft, Apple +59 Solve
Lowest Common Ancestor of a Binary TreeLCA Medium Trees & BST Google, Amazon, Microsoft +46 Solve
Word Break IIChoice per Position Hard Recursion & Backtracking Bloomberg, Snap, Booking.com +12 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Delete Nodes And Return ForestPostorder + Multiple Return Values Medium Trees & BST Pinterest, Expedia Group, Intuit +1 Solve
Design Bounded Blocking QueueConcurrency Medium Design Data Structures Apple, Rubrik, Tesla +1 Solve
Also reported, being added to AlgoRung (4)

Convert JSON String to Object · Distribute Money to Maximum Children · Avoid Flood in The City · Minimum XOR Sum of Two Arrays

Questions people ask

What coding questions does MongoDB ask most?

Logger Rate Limiter, Binary Tree Maximum Path Sum, Task Scheduler, Implement Trie (Prefix Tree), Snapshot Array, Intersection of Two Arrays, Word Break, LRU Cache.

Which topics come up in MongoDB coding rounds?

design data structure, intervals, tries, graphs, trees, strings.

How hard are MongoDB coding questions?

Of the reported questions, 5 are easy, 21 medium and 6 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.