Morgan Stanley interview experience Real time questions & tips from candidates to crack your interview

Technology Analyst

Morgan Stanley
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Operating System, Object-Oriented Programming (OOPS), Algorithms, Dynamic Programming, Data Structures
Tip
Tip

Tip 1 : Don't focus on the number of questions but on the concepts and quality.
Tip 2 : Do at least 2 projects.
Tip 3 : Go through the previously asked questions of the company you are applying for.

Application process
Where: Campus
Eligibility: No crieria
Resume Tip
Resume tip

Tip 1 : The projects you do should be explained in a concise manner. Keep the resume short and crisp while delivering all the important details.
Tip 2 : Highlight the unique points.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date9 Aug 2022
Coding problem2

The round was conducted early in the morning.There were 3 sections:
1.Aptitude based on Maths and Logic
2.Questions based of core subjects and basic Data Structures
3.Coding Round -2 questions

1. Minimum Number Of Vertices To Reach All Nodes

Moderate
25m average time
75% success
0/80
Asked in companies
FacebookTech MahindraMorgan Stanley

Given a directed acyclic graph having ‘N’ nodes. A matrix ‘edges’ of size M x 2 is given which represents the ‘M’ edges such that there is an edge directed from node edges[i][0] to node edges[i][1].

Find the smallest set of vertices from which all the nodes in the graph are reachable.

Note :

Nodes are numbered from 0 to N - 1.

The graph given is connected.

Print the vertices in sorted order.
For Example :
The following is an example of DAG i.e a directed graph with no cycles in it. 

alt
text

In the above graph, we can reach all the vertices from node a.

Problem approach

I applied DFS to solve this problem.

Try solving now

2. Box Stacking

Hard
25m average time
65% success
0/120
Asked in companies
DirectiMorgan StanleyFlipkart

You are given a set of ‘n’ types of rectangular 3-D boxes. The height, width, and length of each type of box are given by arrays, ‘height’, ‘width’, and ‘length’ respectively, each consisting of ‘n’ positive integers. The height, width, length of the i^th type box is given by ‘height[i]’, ‘width[i]’ and ‘length[i]’ respectively.

You need to create a stack of boxes that is as tall as possible using the given set of boxes.

Below are a few allowances:

You can only stack a box on top of another box if the dimensions of the 2-D base of the lower box ( both length and width ) are strictly larger than those of the 2-D base of the higher box. 

You can rotate a box so that any side functions as its base. It is also allowed to use multiple instances of the same type of box. This means, a single type of box when rotated, will generate multiple boxes with different dimensions, which may also be included in stack building.

Return the height of the highest possible stack so formed.

alt text

Note:
The height, Width, Length of the type of box will interchange after rotation.

No two boxes will have all three dimensions the same.

Don’t print anything, just return the height of the highest possible stack that can be formed.
Try solving now
02
Round
Medium
Face to Face
Duration90 Minutes
Interview date16 Aug 2021
Coding problem4

A face to face interview was scheduled with the interviewer.I was asked to solve a few coding questions and then asked questions based on OS and OOPS and some questions related to the working of my projects.

1. Sort 0 1

Moderate
0/80
Asked in companies
Goldman SachsOracleCognizant

You have been given an integer array/list(ARR) of size N that contains only integers, 0 and 1. Write a function to sort this array/list. Think of a solution which scans the array/list only once and don't require use of an extra array/list.

Note:
You need to change in the given array/list itself. Hence, no need to return or print anything. 
Try solving now

2. Flatten A Linked List

Easy
15m average time
85% success
0/40
Asked in companies
Morgan StanleyIntuitAmazon

You are given a linked list containing 'n' 'head' nodes, where every node in the linked list contains two pointers:


(1) ‘next’ which points to the next node in the list

(2) ‘child’ pointer to a linked list where the current node is the head.


Each of these child linked lists is in sorted order and connected by 'child' pointer.


Your task is to flatten this linked such that all nodes appear in a single layer or level in a 'sorted order'.


Example:
Input: Given linked list is:

Output:
1 → 2 → 3 → 4 → 5 → 6 → 7 → 8 → 9 → 12 → 20 → null.


Explanation:
The returned linked list should be in a sorted order. All the elements in this returned linked list are connected by 'child' pointers and 'next' pointers point to null.


Try solving now

3. OS Questions

Basic Questions on Scheduling Algorithms
Difference between Processes and Thread
Disk Scheduling Algorithms-I was asked to explain the difference between the algorithms
LRU Page replacement and the different scenarios of using different page replacement algorithms.

Problem approach

Tip 1 : Go through the topics and understand the concept and the difference between the different algorithms you read.
Tip 2 : Be confident while explaining to the interviewer and try explaining the important points.

4. DS Questions

I was asked to explain the basic oops concepts. I did that using real-life examples.
Difference between abstraction and interface.
Virtual Functions
Method Overloading and overriding

Problem approach

Tip 1 : The concepts should be clear and explaining using examples around you shows that you have clarity.

03
Round
Easy
HR Round
Duration40 Minutes
Interview date16 May 2022
Coding problem1

I was asked basic HR questions and some questions based on my resume.
 

1. Basic HR Questions

Introduce yourself
Where do you see yourself in 2-3 yrs
What are your hobbies
How do you feel you have done something productive
If you were forced to work with someone you don't like, what will you do?
You can prepare the behaviour questions beforehand.
I was asked about the tech stacks I am comfortable with and then the interviewer asked if I had any questions.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which array operation has O(n) worst-case time complexity?

Choose another skill to practice
Similar interview experiences
company logo
Technology Analyst
4 rounds | 11 problems
Interviewed by Morgan Stanley
627 views
0 comments
0 upvotes
company logo
Technology Analyst
5 rounds | 13 problems
Interviewed by Morgan Stanley
747 views
0 comments
0 upvotes
company logo
Technology Analyst
2 rounds | 3 problems
Interviewed by Morgan Stanley
950 views
0 comments
0 upvotes
company logo
Technology Analyst
2 rounds | 6 problems
Interviewed by Morgan Stanley
729 views
0 comments
0 upvotes