Morgan Stanley Interview Prep (Analyst / Associate / VP)

Morgan Stanley is a fundamentals-first loop. The algorithmic bar is lower than Goldman’s and much lower than a trading firm’s — the tagged list below is medium-skewed with dynamic programming and sliding window on top — but the questioning is broader. Expect your language to be examined properly: collections, memory model, concurrency primitives, and in most teams that means Java and Spring.

The structural quirk is the shape of the loop. Rather than three or four long rounds, candidates commonly report several short rounds, sometimes five, often 30 to 45 minutes each, with interviewers dialling in from different offices. That changes how you should prepare: there is no warm-up time, the first question lands immediately, and you need to be crisp rather than exploratory. The round that quietly rejects people is the database round, because most candidates arrive having practiced algorithms and nothing else.


Interview Process

Stage Duration Focus
Recruiter Screen 30 min Background, level, location, team
Online Assessment 60-90 min Coding plus aptitude and CS MCQs for campus
Technical Round 1 30-60 min DSA plus language fundamentals
Technical Round 2 30-60 min OOP, SQL and database design
Technical Round 3 / Design 45-60 min Architecture, APIs, project deep dive
Techno-Managerial Round 30-45 min Ownership, delivery, risk judgment
HR Discussion 30 min Motivation, fit, compensation

Not everyone gets all seven stages, and the technical rounds are frequently shorter and more numerous than the table suggests — five 30-minute rounds in a single block is a commonly reported shape, with interviewers joining from London, Budapest, Hong Kong or Mumbai depending on the team.

Levels follow banking titles: Analyst is roughly SDE-1, Associate roughly SDE-2, VP senior. Design expectations scale with that, and below Associate the design round is often replaced by more fundamentals questioning.


What Morgan Stanley Actually Tests

Derived from 62 reported Morgan Stanley-tagged problems. Difficulty mix:

Difficulty Count Share
Easy 15 24%
Medium 38 61%
Hard 9 15%

Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.

Where those problems fall by pattern:

Rank Pattern Problems Share of list
1 Dynamic Programming 16 26%
2 Sliding Window & Two Pointers 11 18%
3 Intervals, Greedy & Sorting 7 11%
4 Arrays & Hashing 7 11%
5 Stack & Monotonic Stack 5 8%
6 Heap / Priority Queue 3 5%
7 Trees 2 3%
8 Linked List 2 3%
9 Strings 2 3%
10 Binary Search 2 3%

Morgan Stanley Signature Problems

These rank high on Morgan Stanley’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.

# Problem Pattern Difficulty Also asked at Link
1 Best Team With No Conflicts LIS + DP Medium 3 of 142 LeetCode →
2 Minimum Cost to Move Chips to The Same Position Greedy Easy 6 of 142 Solve →
3 The Employee That Worked on the Longest Task Array Easy 2 of 142 LeetCode →
4 Find Subarrays With Equal Sum Hash Table + Array Easy 3 of 142 LeetCode →
5 Find The Original Array of Prefix Xor Bit Manipulation Medium 3 of 142 LeetCode →
6 Count Subarrays With Fixed Bounds Monotonic Queue + Sliding Window Hard 10 of 142 Solve →
7 Delete and Earn DP Medium 13 of 142 Solve →
8 Copy List with Random Pointer Linked List Medium 17 of 142 LeetCode →
9 Make K-Subarray Sums Equal Number Theory + Greedy Medium 2 of 142 LeetCode →
10 Minimum Operations to Reduce X to Zero Sliding Window + Prefix Sum Medium 3 of 142 LeetCode →
11 Minimum Substring Partition of Equal Character Frequency DP Medium 3 of 142 LeetCode →
12 Count of Range Sum Treap + Merge Sort Hard 5 of 142 LeetCode →
13 Least Number of Unique Integers after K Removals Greedy Medium 6 of 142 LeetCode →
14 Minimum Suffix Flips Greedy Medium 5 of 142 LeetCode →

If you are short on time, these carry more Morgan Stanley-specific signal per hour than the universal top-100 lists.


System Design (HLD) Problems Asked at Morgan Stanley

# Problem Difficulty Link
1 Stock Exchange / Broker Advanced Read →
2 Rules Engine (trade validation and limits) Intermediate Read →
3 Payment System Advanced Read →
4 Distributed Message Queue Advanced Read →
5 Metrics and Monitoring System Intermediate Read →
6 Notification System Intermediate Read →
7 Distributed Cache Intermediate Read →
8 Distributed Key-Value Store Advanced Read →
9 Rate Limiter Beginner Read →

LLD / Machine Coding Problems Asked at Morgan Stanley

There is no formal machine coding round, but the OOP round routinely asks you to model a domain in classes and then absorb a new requirement. Modelling practice transfers directly.

# Problem Difficulty Link
1 Order Management System Intermediate Read →
2 Inventory Management Intermediate Read →
3 Multilevel Cache Intermediate Read →
4 Pub-Sub System Intermediate Read →
5 Task Scheduler Intermediate Read →
6 Parking Lot Beginner Read →

DSA Problems Asked at Morgan Stanley

55 problems across 10 pattern groups. Each group is allocated in proportion to its real share of Morgan Stanley’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.

Dynamic Programming

State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 16 on the list.

# Problem Pattern Difficulty Link
1 Best Time to Buy and Sell Stock DP Easy Solve →
2 Best Team With No Conflicts LIS + DP Medium LeetCode →
3 Minimum Number of Lines to Cover Points Bitmask + Geometry Medium LeetCode →
4 Delete and Earn DP Medium Solve →
5 Jump Game Greedy + DP Medium Solve →
6 Maximum Product Subarray DP Medium Solve →
7 Coin Change Complete Knapsack + Knapsack Problem Medium Solve →
8 Fibonacci Number Memoization + DP Easy Solve →
9 Generate Parentheses Bracket Sequences + Backtracking Medium Solve →
10 Longest Common Subsequence LCS + DP Medium Solve →
11 Longest Increasing Subsequence LIS + Binary Search Medium Solve →
12 Longest Valid Parentheses Bracket Sequences + Stack Hard Solve →
13 Maximum Subarray Divide and Conquer + DP Medium Solve →
14 Minimum Number of Taps to Open to Water a Garden Greedy + DP Hard Solve →

Sliding Window & Two Pointers

Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. All 11 on the list.

# Problem Pattern Difficulty Link
15 Longest Substring Without Repeating Characters Sliding Window Medium Solve →
16 Remove Duplicates from Sorted Array Two Pointers Easy Solve →
17 Remove Nth Node From End of List Linked List + Two Pointers Medium Solve →
18 Sort Colors Bubble Sort + Quicksort Medium Solve →
19 3Sum Two Pointers Medium Solve →
20 Container With Most Water Greedy + Two Pointers Medium Solve →
21 Maximum Length Substring With Two Occurrences Sliding Window Easy LeetCode →
22 Next Greater Element III Two Pointers Medium LeetCode →
23 Palindrome Linked List Linked List + Stack Easy Solve →
24 Reorder List Linked List + Stack Medium Solve →
25 Subarrays with K Different Integers Sliding Window Hard Solve →

Intervals, Greedy & Sorting

Sort, then make a local decision you can defend. Expect to justify why greedy is safe here. All 7 on the list.

# Problem Pattern Difficulty Link
26 Minimum Cost to Move Chips to The Same Position Greedy Easy Solve →
27 Merge Intervals Quicksort Medium Solve →
28 Make K-Subarray Sums Equal Number Theory + Greedy Medium LeetCode →
29 Candy Greedy Hard Solve →
30 Least Number of Unique Integers after K Removals Greedy Medium LeetCode →
31 Majority Element Boyer-Moore + Divide and Conquer Easy Solve →
32 Minimum Suffix Flips Greedy Medium LeetCode →

Arrays & Hashing

Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. All 7 on the list.

# Problem Pattern Difficulty Link
33 Find Subarrays With Equal Sum Hash Table + Array Easy LeetCode →
34 The Employee That Worked on the Longest Task Array Easy LeetCode →
35 Two Sum Hash Table + Array Easy Solve →
36 Palindrome Number Math Easy Solve →
37 Spiral Matrix Simulation + Matrix Medium Solve →
38 Contiguous Array Prefix Sum Medium Solve →
39 Shuffle the Array Array Easy LeetCode →

Stack & Monotonic Stack

Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 5 on the list.

# Problem Pattern Difficulty Link
40 First Unique Character in a String Queue Easy Solve →
41 Daily Temperatures Monotonic Stack Medium Solve →
42 Stamping The Sequence Queue + Stack Hard LeetCode →
43 Next Greater Element II Monotonic Stack Medium Solve →
44 Remove All Adjacent Duplicates in String II Stack Medium Solve →

Heap / Priority Queue

Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 3 on the list.

# Problem Pattern Difficulty Link
45 Count Subarrays With Fixed Bounds Monotonic Queue + Sliding Window Hard Solve →
46 Kth Largest Element in an Array Quickselect + Divide and Conquer Medium Solve →
47 Top K Frequent Elements Quickselect + Bucket Sort Medium Solve →

Trees

Recursion discipline: what you return up, what you pass down. Follow-ups usually push from recursive to iterative. All 2 on the list.

# Problem Pattern Difficulty Link
48 Find the Longest Valid Obstacle Course at Each Position LIS + Fenwick Tree Hard LeetCode →
49 Count of Range Sum Treap + Merge Sort Hard LeetCode →

Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 2 on the list.

# Problem Pattern Difficulty Link
50 Kth Missing Positive Number Binary Search Easy Solve →
51 Minimum Operations to Reduce X to Zero Sliding Window + Prefix Sum Medium LeetCode →

Linked List

Pointer surgery under time pressure. Draw the nodes before you write the reassignments. All 2 on the list.

# Problem Pattern Difficulty Link
52 Copy List with Random Pointer Linked List Medium LeetCode →
53 Reverse Linked List Linked List Easy Solve →

Strings

Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 2 on the list.

# Problem Pattern Difficulty Link
54 Group Anagrams Sorting + Hash Table Medium Solve →
55 Integer to English Words Recursion + Math Hard Solve →

Morgan Stanley’s Favourite Patterns (Ranked)

Rank Pattern Frequency Problems on list Start with
1 Dynamic Programming Very High 16 (26%) Best Time to Buy and Sell Stock, Best Team With No Conflicts, Minimum Number of Lines to Cover Points
2 Sliding Window & Two Pointers High 11 (18%) Longest Substring Without Repeating Characters, Remove Duplicates from Sorted Array, Remove Nth Node From End of List
3 Intervals, Greedy & Sorting High 7 (11%) Minimum Cost to Move Chips to The Same Position, Merge Intervals, Make K-Subarray Sums Equal
4 Arrays & Hashing Medium-High 7 (11%) Find Subarrays With Equal Sum, The Employee That Worked on the Longest Task, Two Sum
5 Stack & Monotonic Stack Medium-High 5 (8%) First Unique Character in a String, Daily Temperatures, Stamping The Sequence
6 Heap / Priority Queue Medium-High 3 (5%) Count Subarrays With Fixed Bounds, Kth Largest Element in an Array, Top K Frequent Elements
7 Trees Medium 2 (3%) Find the Longest Valid Obstacle Course at Each Position, Count of Range Sum
8 Binary Search Medium 2 (3%) Kth Missing Positive Number, Minimum Operations to Reduce X to Zero
9 Linked List Medium 2 (3%) Copy List with Random Pointer, Reverse Linked List
10 Strings Medium 2 (3%) Group Anagrams, Integer to English Words

How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Dynamic Programming, Sliding Window & Two Pointers, Intervals, Greedy & Sorting covers the bulk of what Morgan Stanley actually asks. The rest is insurance for the one round that goes somewhere unexpected.


Behavioural Round

# Question
1 Why financial services, and why Morgan Stanley?
2 Walk me through a production incident you handled. What was the root cause?
3 Tell me about a time you had to deliver under a hard regulatory or audit deadline.
4 Describe a time you spotted a risk in a design before it shipped.
5 Tell me about a disagreement with a stakeholder and how you resolved it.
6 Describe a time you had to learn an unfamiliar codebase quickly.
7 Tell me about a time you had to say no to a request from the business.
8 What is the most difficult technical decision you have had to defend?

The techno-managerial round blends behavioural and technical questioning, so expect a story to be interrupted by “how was that implemented”. Prepare three projects you can discuss at both levels rather than ten polished narratives. A risk-awareness story lands well here: a bank values the engineer who flagged the problem over the one who moved fast.


14-Day Prep Plan

Built from the pattern ranking above, so the heaviest topics get the most time.

Day Focus Problems
1 Dynamic Programming (part 1) Best Time to Buy and Sell Stock, Best Team With No Conflicts, Minimum Number of Lines to Cover Points
2 Dynamic Programming (part 2) Delete and Earn, Jump Game, Maximum Product Subarray
3 Sliding Window & Two Pointers (part 1) Longest Substring Without Repeating Characters, Remove Duplicates from Sorted Array, Remove Nth Node From End of List
4 Sliding Window & Two Pointers (part 2) Sort Colors, 3Sum, Container With Most Water
5 Intervals, Greedy & Sorting (part 1) Minimum Cost to Move Chips to The Same Position, Merge Intervals, Make K-Subarray Sums Equal
6 Intervals, Greedy & Sorting (part 2) Candy, Least Number of Unique Integers after K Removals, Majority Element
7 Arrays & Hashing Find Subarrays With Equal Sum, The Employee That Worked on the Longest Task, Two Sum
8 Stack & Monotonic Stack First Unique Character in a String, Daily Temperatures, Stamping The Sequence
9 Heap / Priority Queue Count Subarrays With Fixed Bounds, Kth Largest Element in an Array, Top K Frequent Elements
10 Trees Find the Longest Valid Obstacle Course at Each Position, Count of Range Sum
11 Binary Search Kth Missing Positive Number, Minimum Operations to Reduce X to Zero
12 Mock round Two problems in 45 minutes, timed, no hints. Simulate the real round.
13 Revision Redo the problems you failed or needed a hint on.
14 Light review + rest Re-read your pattern notes. Sleep early.

Tips for Morgan Stanley Interviews

  1. Prepare SQL properly, not casually. Joins, group-by with conditional aggregation, window functions, indexing, and what a query plan tells you. This is the round candidates skip and then fail, because algorithm practice gives you nothing for it.
  2. Drill DP and sliding window. Together they are the two largest buckets in the data above. Subarray and subsequence problems with a running constraint are the recurring shape.
  3. Know your language to internals depth. If you interview in Java, expect HashMap resizing, equals and hashCode, the collections hierarchy, immutability, thread-safety and garbage collection. The equivalent applies in C# or Python.
  4. Be fast off the mark. With 30-minute rounds there is no time to think in silence for five minutes. State your approach and complexity in the first two minutes, then write.
  5. Expect the interviewer to be remote and unfamiliar with your team. Introduce your project in one sentence of context before the detail, because the person on the call may work in a completely different business line.
  6. Have a concrete “why Morgan Stanley” answer. Naming a business line or platform you want to work on beats generic enthusiasm, and the HR round will test it.

Other Company Prep


Round counts, durations and level mapping reflect commonly reported candidate experiences rather than a published Morgan Stanley process. The loop varies substantially by business line, location and campus versus experienced hiring, and several reports describe both shorter and longer loops than the table above. Confirm the shape with your recruiter.