Morgan Stanley Coding Interview Questions
39 coding problems are tagged as asked at Morgan Stanley in interviews and online assessments reported by candidates. By difficulty they split into 10 basic, 21 intermediate and 8 advanced. The topics they most often combine with are Array, String, Hash Table, Dynamic Programming.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Morgan Stanley tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Longest Substring Without Repeats (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- First Unique Character (Basic)
- Kth Largest Element (Intermediate)
- Majority Element (Basic)
- Longest Consecutive Sequence (Intermediate)
- Container With Most Water (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Sort Colors (Basic)
- Daily Temperatures (Intermediate)
- Longest Common Subsequence (Advanced)
- Coin Change Ways (Advanced)
- Longest Valid Parentheses (Advanced)
- Merge Intervals (Intermediate)
- Candy Distribution (Advanced)
- Kth Missing Positive Number (Basic)
- Sum of Subarray Minimums (Advanced)
- Count Subarrays With Fixed Bounds (Intermediate)
- Maximum Product Subarray (Intermediate)
- Coin Change Ways (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Sum of Subarray Minimums (Advanced)
- LRU Cache Operations (Basic)
- Remove Nth Node From End (Intermediate)
- Palindrome Linked List (Basic)
- Reorder Linked List (Intermediate)
- Delete and Earn (Intermediate)
- Integer to English Words (Advanced)
- Word Search (Intermediate)
- Least Unique Integers After K Removals (Intermediate)
- 3Sum Triplets (Intermediate)
- Shuffle the Array (Basic)
- Remove All Adjacent Duplicates in String II (Intermediate)
- Minimum Suffix Flips (Basic)
Related
- Morgan Stanley basic problems
- Morgan Stanley intermediate problems
- Morgan Stanley advanced problems
- Morgan Stanley Array problems
- Morgan Stanley String problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Morgan Stanley problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Morgan Stanley interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.