Interview Prep/Companies/Morgan Stanley
MS

Morgan Stanley

51 questions tracked49 with solutions
🔍
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough

Showing 51 of 51 questions

1
EasyBest Time to Buy and Sell Stock✓ Our Solution
100
ArrayDynamic Programming
LeetCode ↗55% acc.
2
EasyMinimum Cost to Move Chips to The Same Position✓ Our Solution
90
ArrayMathGreedy
LeetCode ↗72% acc.
3
MediumFind The Original Array of Prefix Xor✓ Our Solution
90
ArrayBit Manipulation
LeetCode ↗88% acc.
4
MediumBest Team With No Conflicts✓ Our Solution
90
ArrayDynamic ProgrammingSorting
LeetCode ↗50% acc.
5
EasyFind Subarrays With Equal Sum✓ Our Solution
88
ArrayHash Table
LeetCode ↗66% acc.
6
MediumMinimum Number of Lines to Cover Points
88
ArrayHash TableMathDynamic Programming+4
LeetCode ↗43% acc.
7
EasyThe Employee That Worked on the Longest Task✓ Our Solution
88
Array
LeetCode ↗51% acc.
8
HardFind the Longest Valid Obstacle Course at Each Position✓ Our Solution
88
ArrayBinary SearchBinary Indexed Tree
LeetCode ↗63% acc.
9
HardCount Subarrays With Fixed Bounds✓ Our Solution
76
ArrayQueueSliding WindowMonotonic Queue
LeetCode ↗69% acc.
10
EasyTwo Sum✓ Our Solution
71
ArrayHash Table
LeetCode ↗56% acc.
11
MediumMerge Intervals✓ Our Solution
71
ArraySorting
LeetCode ↗49% acc.
12
MediumLongest Substring Without Repeating Characters✓ Our Solution
66
Hash TableStringSliding Window
LeetCode ↗37% acc.
13
HardFirst Missing Positive✓ Our Solution
66
ArrayHash Table
LeetCode ↗41% acc.
14
MediumKth Largest Element in an Array✓ Our Solution
59
ArrayDivide and ConquerSortingHeap (Priority Queue)+1
LeetCode ↗68% acc.
15
59
ArrayTwo PointersSorting
LeetCode ↗37% acc.
16
MediumGroup Anagrams✓ Our Solution
59
ArrayHash TableStringSorting
LeetCode ↗71% acc.
17
MediumMake K-Subarray Sums Equal✓ Our Solution
59
ArrayMathGreedySorting+1
LeetCode ↗37% acc.
18
MediumContiguous Array✓ Our Solution
59
ArrayHash TablePrefix Sum
LeetCode ↗49% acc.
19
HardMinimum Number of Refueling Stops✓ Our Solution
59
ArrayDynamic ProgrammingGreedyHeap (Priority Queue)
LeetCode ↗41% acc.
20
MediumLRU Cache✓ Our Solution
59
Hash TableLinked ListDesignDoubly-Linked List
LeetCode ↗45% acc.
21
MediumCopy List with Random Pointer✓ Our Solution
59
Hash TableLinked List
LeetCode ↗61% acc.
22
EasyReverse String✓ Our Solution
50
Two PointersString
LeetCode ↗80% acc.
23
MediumMaximum Subarray✓ Our Solution
50
ArrayDivide and ConquerDynamic Programming
LeetCode ↗52% acc.
24
EasyRemove Duplicates from Sorted Array✓ Our Solution
50
ArrayTwo Pointers
LeetCode ↗60% acc.
25
HardStamping The Sequence✓ Our Solution
50
StringStackGreedyQueue
LeetCode ↗62% acc.
26
MediumGenerate Parentheses✓ Our Solution
50
StringDynamic ProgrammingBacktracking
LeetCode ↗77% acc.
27
EasyKth Missing Positive Number✓ Our Solution
50
ArrayBinary Search
LeetCode ↗62% acc.
28
MediumCoin Change II✓ Our Solution
50
ArrayDynamic Programming
LeetCode ↗62% acc.
29
MediumMin Stack✓ Our Solution
50
StackDesign
LeetCode ↗56% acc.
30
EasyPalindrome Linked List✓ Our Solution
50
Linked ListTwo PointersStackRecursion
LeetCode ↗56% acc.
31
EasyValid Parentheses✓ Our Solution
50
StringStack
LeetCode ↗42% acc.
32
MediumLetter Combinations of a Phone Number✓ Our Solution
50
Hash TableStringBacktracking
LeetCode ↗64% acc.
33
MediumWord Search✓ Our Solution
50
ArrayStringBacktrackingDepth-First Search+1
LeetCode ↗45% acc.
34
MediumMinimum Operations to Reduce X to Zero✓ Our Solution
50
ArrayHash TableBinary SearchSliding Window+1
LeetCode ↗40% acc.
35
MediumNumber of Islands✓ Our Solution
50
ArrayDepth-First SearchBreadth-First SearchUnion Find+1
LeetCode ↗62% acc.
36
HardSubarrays with K Different Integers✓ Our Solution
50
ArrayHash TableSliding WindowCounting
LeetCode ↗66% acc.
37
MediumJump Game✓ Our Solution
50
ArrayDynamic ProgrammingGreedy
LeetCode ↗39% acc.
38
MediumSteps to Make Array Non-decreasing✓ Our Solution
50
ArrayLinked ListStackMonotonic Stack
LeetCode ↗23% acc.
39
MediumMeeting Rooms II
50
ArrayTwo PointersGreedySorting+2
LeetCode ↗52% acc.
40
HardCount of Range Sum✓ Our Solution
50
ArrayBinary SearchDivide and ConquerBinary Indexed Tree+3
LeetCode ↗37% acc.
41
MediumRotate List✓ Our Solution
50
Linked ListTwo Pointers
LeetCode ↗40% acc.
42
MediumSort Colors✓ Our Solution
50
ArrayTwo PointersSorting
LeetCode ↗68% acc.
43
EasyNext Greater Element I✓ Our Solution
50
ArrayHash TableStackMonotonic Stack
LeetCode ↗75% acc.
44
HardCount of Integers✓ Our Solution
50
MathStringDynamic Programming
LeetCode ↗37% acc.
45
MediumDecode Ways✓ Our Solution
50
StringDynamic Programming
LeetCode ↗37% acc.
46
MediumSubarray Sum Equals K✓ Our Solution
50
ArrayHash TablePrefix Sum
LeetCode ↗45% acc.
47
EasyCount Binary Substrings✓ Our Solution
50
Two PointersString
LeetCode ↗66% acc.
48
EasySubtree of Another Tree✓ Our Solution
50
TreeDepth-First SearchString MatchingBinary Tree+1
LeetCode ↗50% acc.
49
MediumReverse Words in a String✓ Our Solution
50
Two PointersString
LeetCode ↗52% acc.
50
MediumHouse Robber✓ Our Solution
50
ArrayDynamic Programming
LeetCode ↗52% acc.
51
MediumLongest Palindromic Substring✓ Our Solution
50
Two PointersStringDynamic Programming
LeetCode ↗36% acc.