Morgan Stanley interview prep
Practice 30 problems from community-reported Morgan Stanley interviews.
Your progress
0 / 30- Easy 0 / 8
- Medium 0 / 19
- Hard 0 / 3
Solved problems are saved in this browser.
Ranked problems
30 problems| Solved | Problem | Difficulty | Company lists |
|---|---|---|---|
ArraysGiven daily prices, find the best profit from buying once and selling on a later day. Return zero if no trade makes money. On the Amazon, Google, Microsoft, Meta, IBM, J.P. Morgan, Morgan Stanley lists. |
Easy | ||
Dynamic programmingSelect players to maximize total score while ensuring no younger teammate scores more than an older teammate. On the Morgan Stanley list. |
Medium | ||
03Two Sum
Hash tablesFind the indices of two different elements in an array whose values add up to a given target. On the Amazon, Google, Microsoft, Meta, Samsung, Tekion, IBM, Oracle, J.P. Morgan, Morgan Stanley lists. Try Reveal the indices
|
Easy | ||
GreedyGather every chip at one position. A step of two positions is free and a step of one costs one. Minimize the total cost. On the Morgan Stanley list. |
Easy | ||
Binary searchFor every obstacle, find the longest nondecreasing subsequence of heights that ends at that exact position. On the Morgan Stanley list. |
Hard | ||
Geometry · LeetCode PremiumFind the smallest number of straight lines needed so that every supplied point lies on at least one of them. On the Morgan Stanley list. |
Medium | ||
Hash tablesDecide whether two different starting positions in an array have the same sum of two consecutive elements. On the Morgan Stanley list. |
Easy | ||
ArraysUse sequential task completion logs to identify who performed the longest individual task. Break a tie with the smallest employee ID. On the Morgan Stanley list. |
Easy | ||
Bit manipulationReconstruct an integer array when each supplied entry is the XOR of all original values up to that position. On the Morgan Stanley list. |
Medium | ||
Dynamic programmingChoosing a number earns its value and eliminates all occurrences of its neighboring values. Find the highest score you can earn. On the IBM, Morgan Stanley lists. |
Medium | ||
Sliding windowFind the length of the longest contiguous stretch of a string in which no character appears twice. On the Amazon, Google, Microsoft, Meta, Tekion, IBM, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
IntervalsCombine overlapping intervals and return a list that covers the same ranges without overlaps. On the Amazon, Microsoft, IBM, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
Linked listsDeep-copy a linked list whose nodes also point to arbitrary nodes or null. All copied pointers must refer to the corresponding copies or null. On the Morgan Stanley list. |
Medium | ||
Data structure designDesign a fixed-capacity cache with constant-time reads and writes. When it fills up, evict the least recently used key. On the Amazon, Microsoft, Samsung, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
MathDecide whether the decimal digits of an integer read the same from either end. On the Amazon, Google, Microsoft, Meta, Morgan Stanley lists. |
Easy | ||
CountingReturn the index of the first character that appears exactly once, or −1 when every character repeats. On the Morgan Stanley list. |
Easy | ||
Two pointersReorder an array containing only 0, 1 and 2 into ascending order in place without calling a library sort. On the Morgan Stanley list. |
Medium | ||
Sliding windowCount contiguous subarrays whose smallest value equals the given lower bound and whose largest equals the given upper bound. On the Morgan Stanley list. |
Hard | ||
HeapsFind the value in position k when the array is ordered from largest to smallest, counting duplicates. On the Meta, Morgan Stanley lists. |
Medium | ||
203Sum
Two pointersFind every distinct triple of values that adds up to zero, using three different positions in the array. On the Amazon, Google, Microsoft, Meta, Samsung, Oracle, Morgan Stanley lists. |
Medium | ||
Hash tablesGroup words that contain exactly the same letters with the same counts, regardless of order. On the Amazon, Google, Meta, Oracle, J.P. Morgan, Morgan Stanley lists. |
Medium | ||
GreedyFind a sequence of stamp placements that spells the target on a blank strip. Later stamps may overwrite earlier letters. On the Morgan Stanley list. |
Hard | ||
ArraysReturn every entry in a rectangular matrix in clockwise spiral order, starting at the top-left corner. On the Oracle, Morgan Stanley lists. |
Medium | ||
Dynamic programmingFind the largest product of a nonempty contiguous segment of an integer array that may include zeros and negative numbers. On the Morgan Stanley list. |
Medium | ||
StacksFor each daily temperature, report how many days you must wait for a warmer reading. Use zero if none follows. On the Tekion, Morgan Stanley lists. |
Medium | ||
Linked listsRemove the nth node counted from the end of a singly linked list, then return the resulting head. On the Morgan Stanley list. |
Medium | ||
GreedyEach array entry gives the farthest jump allowed from that position. Decide whether you can reach the last index from the first. On the Morgan Stanley list. |
Medium | ||
Prefix sumsFind the longest contiguous segment of a binary array that contains just as many zeros as ones. On the Morgan Stanley list. |
Medium | ||
Two pointersCompact a sorted array in place so each distinct value appears once at the front, then return the number of distinct values. On the Google, Microsoft, Meta, Morgan Stanley lists. |
Easy | ||
BacktrackingGenerate every correctly nested string that uses exactly n pairs of parentheses. On the Morgan Stanley list. |
Medium |
How are questions ranked?
Company lists follow community-reported interview frequency. Ties keep the source order. Where a list uses two sources, we keep the first list’s ranks and fill the remaining places with the highest-ranked distinct problems from the second.
Across companies, first place earns 30 points and each subsequent rank earns one fewer. We add each problem’s points and break ties alphabetically.
- Morgan Stanley · All time · 21 October 2026