Morgan Stanley (Code to Give) OA
Had Three Sections
Debugging Section - 10 Questions, 20 Minutes
Easy syntax related problems
matrix addition, bubble sort, selection sort,string comparision, etc.
minor changes
Aptitude Section - 24 Questions, 40 Minutes
General Aptitude Questions
Coding Round - 3 Questions, 60 Minutes
Q1. House Robber
House Robber-1
(Differently worded though.)
Q2.
Find the number of subarrays that can be removed, such that the remaining array is strictly increasing (non-empty).
https://leetcode.com/problems/shortest-subarray-to-be-removed-to-make-array-sorted/description/
Count the subarray using two pointer until invalid condition
Q3 Subarrays with exactly k different integers
Subarrays with K Different Integers
(Again, differently worded)