Morgan Stanley vs Salesforce Interview Questions

Morgan Stanley lists 60 LeetCode interview questions while Salesforce lists 188. They share 28 problems — 47% of Morgan Stanley's bank and 15% of Salesforce's. Focus on the overlap first, then drill into 32 Morgan Stanley-only and 160 Salesforce-only questions.

Read the full Morgan Stanley vs Salesforce preparation guide →

Overview

Morgan Stanley

60 questions

Easy 13Medium 40Hard 7
Salesforce

188 questions

Easy 25Medium 112Hard 51

Preparation Strategy

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

Step 2 — Company-specific depth: Add Morgan Stanley-specific problems like Best Team With No Conflicts, Minimum Number of Lines to Cover Points, Find the Longest Valid Obstacle Course at Each Position and Salesforce-specific problems from the exclusive lists below.

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

Difficulty Comparison

Easy
Morgan Stanley
13
Salesforce
25
Medium
Morgan Stanley
40
Salesforce
112
Hard
Morgan Stanley
7
Salesforce
51

Top Shared Topics

28 Shared Questions

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

ProblemDifficulty
Best Time to Buy and Sell StockEasy
Two SumEasy
Delete and EarnMedium
Longest Substring Without Repeating CharactersMedium
Merge IntervalsMedium
LRU CacheMedium
Kth Largest Element in an ArrayMedium
Group AnagramsMedium
Sort ColorsMedium
Spiral MatrixMedium
Meeting Rooms IIMedium
Generate ParenthesesMedium
3SumMedium
Subarrays with K Different IntegersHard
Coin Change IIMedium
Minimum Number of Taps to Open to Water a GardenHard
CandyHard
Word SearchMedium
Remove All Adjacent Duplicates in String IIMedium
Longest Common SubsequenceMedium
Least Number of Unique Integers after K RemovalsMedium
Longest Palindromic SubstringMedium
Maximum SubarrayMedium
Maximum Product SubarrayMedium
Longest Increasing SubsequenceMedium
Coin ChangeMedium
Container With Most WaterMedium
Top K Frequent ElementsMedium

Unique to Morgan Stanley (32)

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

ProblemDifficulty
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
Count Subarrays With Fixed BoundsHard
First Unique Character in a StringEasy
Palindrome NumberEasy
Remove Nth Node From End of ListMedium
Copy List with Random PointerMedium

Unique to Salesforce (160)

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

ProblemDifficulty
Minimum Operations to Reduce an Integer to 0Medium
String CompressionMedium
Time Needed to Rearrange a Binary StringMedium
LFU CacheHard
Closest Equal Element QueriesMedium
Smallest Substring With Identical Characters IHard
Smallest Substring With Identical Characters IIHard
Remove Adjacent Almost-Equal CharactersMedium
Subarray Product Less Than KMedium
Maximum Palindromes After OperationsMedium
Maximum Number of Occurrences of a SubstringMedium
Maximum Product of Three NumbersEasy

Frequently Asked Questions

How many LeetCode questions do Morgan Stanley and Salesforce share?

Morgan Stanley and Salesforce share 28 LeetCode interview questions. 32 problems appear only in Morgan Stanley's list and 160 appear only in Salesforce's list.

What topics overlap most between Morgan Stanley and Salesforce?

The most common shared topics between Morgan Stanley and Salesforce are Array (22 shared questions), Dynamic Programming (11 shared questions), Hash Table (8 shared questions), Sorting (8 shared questions), String (7 shared questions). Mastering these areas prepares you for both companies.

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

Morgan Stanley has 13 Easy, 40 Medium, and 7 Hard questions. Salesforce has 25 Easy, 112 Medium, and 51 Hard questions. Salesforce has a higher proportion of Hard problems in its interview set.

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

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

Explore More