Interview Intel · Morgan Stanley

Morgan Stanley coding interview
questions, leaked.

51 problems reported across recent Morgan Stanley interviews. Top patterns: array, hash table, string. The list below is what most reported candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Morgan Stanley's assessment leans hard on arrays. 34 of 51 problems touch array manipulation, and two-thirds sit at medium difficulty or higher. You're looking at a blend of classic LeetCode (Two Sum, Merge Intervals) and harder algorithmic patterns (First Missing Positive, Count Subarrays With Fixed Bounds). Most candidates drill the easy stuff and choke on medium array problems that require dynamic programming or binary search. If you hit a wall mid-assessment, StealthCoder runs invisibly during screen share and surfaces a working solution in seconds, so you can skip past the wall and keep moving.

Tracked problems
51
Easy
13/ 25%
Medium
30/ 59%
Hard
8/ 16%

Top problems at Morgan Stanley

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Best Time to Buy and Sell StockEASY
100.0
02Find The Original Array of Prefix XorMEDIUM
89.7
03Minimum Cost to Move Chips to The Same PositionEASY
89.7
04Best Team With No ConflictsMEDIUM
89.7
05The Employee That Worked on the Longest TaskEASY
87.5
06Find Subarrays With Equal SumEASY
87.5
07Find the Longest Valid Obstacle Course at Each PositionHARD
87.5
08Minimum Number of Lines to Cover PointsMEDIUM
87.5
09Count Subarrays With Fixed BoundsHARD
75.5
10Merge IntervalsMEDIUM
71.2
11Two SumEASY
71.2
12First Missing PositiveHARD
65.9
13Longest Substring Without Repeating CharactersMEDIUM
65.9
14Make K-Subarray Sums EqualMEDIUM
59.2
15Group AnagramsMEDIUM
59.2
163SumMEDIUM
59.2
17Minimum Number of Refueling StopsHARD
59.2
18Kth Largest Element in an ArrayMEDIUM
59.2
19Copy List with Random PointerMEDIUM
59.2
20LRU CacheMEDIUM
59.2
21Contiguous ArrayMEDIUM
59.2
22Minimum Operations to Reduce X to ZeroMEDIUM
49.7
23Stamping The SequenceHARD
49.7
24Steps to Make Array Non-decreasingMEDIUM
49.7
25Valid ParenthesesEASY
49.7
26Min StackMEDIUM
49.7
27Letter Combinations of a Phone NumberMEDIUM
49.7
28Meeting Rooms IIMEDIUM
49.7
29Jump GameMEDIUM
49.7
30Next Greater Element IEASY
49.7
31Count Binary SubstringsEASY
49.7
32Rotate ListMEDIUM
49.7
33Reverse StringEASY
49.7
34Decode WaysMEDIUM
49.7
35Count of Range SumHARD
49.7
36Subarray Sum Equals KMEDIUM
49.7
37Count of IntegersHARD
49.7
38Reverse Words in a StringMEDIUM
49.7
39House RobberMEDIUM
49.7
40Subtree of Another TreeEASY
49.7
41Sort ColorsMEDIUM
49.7
42Maximum SubarrayMEDIUM
49.7
43Remove Duplicates from Sorted ArrayEASY
49.7
44Generate ParenthesesMEDIUM
49.7
45Kth Missing Positive NumberEASY
49.7
46Coin Change IIMEDIUM
49.7
47Palindrome Linked ListEASY
49.7
48Word SearchMEDIUM
49.7
49Number of IslandsMEDIUM
49.7
50Subarrays with K Different IntegersHARD
49.7

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Morgan Stanley OA. The proctor cannot see it. Screen share cannot detect it. Built by an Amazon engineer who realized the OA tests how well you memorized 200 problems, not how well you code.

Get StealthCoder
Topic distribution
What this means

Array problems dominate, so start there. Best Time to Buy and Sell Stock and Two Sum are warm-ups; don't waste time on them. Focus on the medium-tier array-DP problems (Best Team With No Conflicts, Find Subarrays With Equal Sum) because they appear repeatedly and trip most candidates. Hash tables show up in 14 problems, always paired with arrays or strings. Sorting and greedy algorithms are lighter (8 and 6 problems) but often combined with arrays, so they're less of a standalone threat. The hard tier (8 problems total) uses binary search and sliding window on arrays, patterns you won't see in most prep plans. Drilling those three to four hard array problems gives you confidence the night before. StealthCoder is your hedge for whatever pattern you didn't have time to cover, running live if you blank on a hash-table optimization or a binary-search variant.

Companies with similar patterns

If you prepped for Morgan Stanley, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Morgan Stanley.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Built by an Amazon engineer who realized the OA tests how well you memorized 200 problems, not how well you code. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Morgan Stanley interview FAQ

Should I focus on easy problems first?+

No. Morgan Stanley has 13 easy problems out of 51, but 30 medium ones. Easy problems like Two Sum and Best Time to Buy and Sell Stock are baseline. Spend 70% of your time on medium array and hash-table problems where most candidates actually fail. Easy drills are confidence, not the fight.

How much time should I spend on dynamic programming?+

12 problems touch DP. Most are array-based (Best Team With No Conflicts, Best Time to Buy and Sell Stock). Start by solving array problems that use DP. Don't study DP in isolation. Learn it through the problems themselves, which is faster.

Are hash tables as important as arrays?+

Hash tables appear in 14 problems, but almost always paired with arrays or strings. Master array problems first. Hash tables will feel natural once you're comfortable slicing, searching, and grouping arrays. They're the secondary pattern, not the primary threat.

What's the hardest topic I should drill before the assessment?+

Binary search and sliding window on arrays. Count Subarrays With Fixed Bounds and Find the Longest Valid Obstacle Course sit in the hard tier and combine these patterns. Most candidates skip them. Solving two or three hard array problems gives you a concrete edge.

Is sorting worth studying separately?+

Sorting appears in 8 problems, but never alone. It's always bundled with arrays (Merge Intervals, Best Team With No Conflicts). Know how to sort and merge arrays. Don't drill sorting as a standalone topic. You'll pick it up naturally from array problems.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Morgan Stanley. StealthCoder is not affiliated with Morgan Stanley.