Databricks vs Morgan Stanley Interview Questions

Databricks lists 31 LeetCode interview questions while Morgan Stanley lists 60. They share 3 problems — 10% of Databricks's bank and 5% of Morgan Stanley's. Focus on the overlap first, then drill into 28 Databricks-only and 57 Morgan Stanley-only questions.

Overview

Databricks

31 questions

Easy 2Medium 22Hard 7
Morgan Stanley

60 questions

Easy 13Medium 40Hard 7

Preparation Strategy

Step 1 — Shared core: Solve the 3 overlapping problems first. These are the highest-yield questions for candidates interviewing at both Databricks and Morgan Stanley.

Step 2 — Company-specific depth: Add Databricks-specific problems like Design Hit Counter, IP to CIDR, Design Tic-Tac-Toe and Morgan Stanley-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Databricks
2
Morgan Stanley
13
Medium
Databricks
22
Morgan Stanley
40
Hard
Databricks
7
Morgan Stanley
7

Top Shared Topics

3 Shared Questions

High-priority problems to practice for both Databricks and Morgan Stanley.

ProblemDifficulty
Spiral MatrixMedium
Merge IntervalsMedium
Two SumEasy

Unique to Databricks (28)

Problems in Databricks's list that do not appear at Morgan Stanley.

ProblemDifficulty
Design Hit CounterMedium
IP to CIDRMedium
Design Tic-Tac-ToeMedium
House RobberMedium
Find All Anagrams in a StringMedium
Step-By-Step Directions From a Binary Tree Node to AnotherMedium
Time Based Key-Value StoreMedium
House Robber IIMedium
RLE IteratorMedium
Longest Palindrome by Concatenating Two Letter WordsMedium
Closest Leaf in a Binary TreeMedium
Shortest Path in a Grid with Obstacles EliminationHard

Unique to Morgan Stanley (57)

Problems in Morgan Stanley's list that do not appear at Databricks.

ProblemDifficulty
Best Time to Buy and Sell StockEasy
Best Team With No ConflictsMedium
Minimum Number of Lines to Cover PointsMedium
Find the Longest Valid Obstacle Course at Each PositionHard
Minimum Cost to Move Chips to The Same PositionEasy
Find Subarrays With Equal SumEasy
The Employee That Worked on the Longest TaskEasy
Find The Original Array of Prefix XorMedium
Delete and EarnMedium
Longest Substring Without Repeating CharactersMedium
Count Subarrays With Fixed BoundsHard
First Unique Character in a StringEasy

Frequently Asked Questions

How many LeetCode questions do Databricks and Morgan Stanley share?

Databricks and Morgan Stanley share 3 LeetCode interview questions. 28 problems appear only in Databricks's list and 57 appear only in Morgan Stanley's list.

What topics overlap most between Databricks and Morgan Stanley?

The most common shared topics between Databricks and Morgan Stanley are Array (3 shared questions), Matrix (1 shared questions), Simulation (1 shared questions), Sorting (1 shared questions), Hash Table (1 shared questions). Mastering these areas prepares you for both companies.

Which company asks harder LeetCode questions: Databricks or Morgan Stanley?

Databricks has 2 Easy, 22 Medium, and 7 Hard questions. Morgan Stanley has 13 Easy, 40 Medium, and 7 Hard questions. Databricks has a higher proportion of Hard problems in its interview set.

How should I prepare if interviewing at both Databricks and Morgan Stanley?

Start with the 3 shared problems since they cover what both companies ask most often. Then add 20 Databricks-specific and 20 Morgan Stanley-specific questions to round out your prep.

Explore More