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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, OOPS, Computer Fundamentals, Operating System. DBMS, Computer Network
Tip
Tip

Tip 1 : Most of the HR questions didn’t require any preparation but the recollection of your past journey would be an excellent option because if you can co-relate the question asked in the interview to the real-life situation which has occurred before, there are decent chances of yours getting selected.
Tip 2 : Make a document where you can add answers to those questions which you think the interviewer can ask you about your resume. Like your introduction, Descriptions of your projects, Why do you want to join XYZ company, What are your strengths and weaknesses, etc
Tip 3 : Do good research about the company and recruiters. Research the company you are interviewing for thoroughly. Also, if you know your interviewer beforehand, follow on LinkedIn to know more about their work.

Application process
Where: Campus
Eligibility: 7.5+ CGPA
Resume Tip
Resume tip

Tip 1 : Add at least 2 mid-level projects and also add there GitHub link
Tip 2 : Do not lie on your resume or try to cheat in the interview. Write only those things in your resume that you are confident about.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration60 minutes
Interview date12 Aug 2021
Coding problem3

It was conducted on AMCAT. Around 200+ students have registered for the Online Test. The test duration was 60 minutes consisting of two coding questions.

1. Job Sequencing Problem

Moderate
30m average time
70% success
0/80
Asked in companies
MicrosoftOlaMorgan Stanley

You are given a 'Nx3' 2-D array 'Jobs' describing 'N' jobs where 'Jobs[i][0]' denotes the id of 'i-th' job, 'Jobs[i][1]' denotes the deadline of 'i-th' job, and 'Jobs[i][2]' denotes the profit associated with 'i-th job'.


You will make a particular profit if you complete the job within the deadline associated with it. Each job takes 1 unit of time to be completed, and you can schedule only one job at a particular time.


Return the number of jobs to be done to get maximum profit.


Note :
If a particular job has a deadline 'x', it means that it needs to be completed at any time before 'x'.

Assume that the start time is 0.


For Example :
'N' = 3, Jobs = [[1, 1, 30], [2, 3, 40], [3, 2, 10]].

All the jobs have different deadlines. So we can complete all the jobs.

At time 0-1, Job 1 will complete.
At time 1-2, Job 3 will complete.
At time 2-3, Job 2 will complete.

So our answer is [3 80].
Problem approach

1) Sort all jobs in decreasing order of profit. 
2) Iterate on jobs in decreasing order of profit.For each job , do the following : 
a)Find a time slot i, such that slot is empty and i < deadline and i is greatest.Put the job in 
this slot and mark this slot filled. 
b)If no such i exists, then ignore the job.

Try solving now

2. Level Order Traversal

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

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Try solving now

3. Count Inversions

Moderate
40m average time
55% success
0/80
Asked in companies
Hewlett Packard EnterpriseBNY MellonGrab

For a given integer array/list 'ARR' of size 'N' containing all distinct values, find the total number of 'Inversions' that may exist.

An inversion is defined for a pair of integers in the array/list when the following two conditions are met.

A pair ('ARR[i]', 'ARR[j]') is said to be an inversion when:

1. 'ARR[i] > 'ARR[j]' 
2. 'i' < 'j'

Where 'i' and 'j' denote the indices ranging from [0, 'N').
Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date14 Aug 2021
Coding problem4

Usually, companies asked questions mainly based on OOPS, DBMS, Low-Level Design using OOP, and Database Design using SQL Queries. But be prepared with all the CS Subjects because you never know what the interviewer will ask you during the interview.

1. Sparse Search

Easy
20m average time
80% success
0/40
Asked in companies
FacebookOlaAmazon

You are given a sorted array of strings say ‘ARR’ and provided with another string say ‘K’. Your task is to find the position of ‘K’ in ‘ARR’.

Note :
‘ARR’ can also contain empty strings.
You will return -1 if ‘K’ does not exist in ‘ARR’.
For example :
‘ARR’ = [ “code”, “hi”, “”, “”,  “studio”, “”, “to”, “welcome” ] and ‘K’ = “hi”.
 As we can see ‘K’ is present on index 1 in ‘ARR’.
 So we will return 1.
Try solving now

2. Boundary Traversal of Binary Tree

Hard
20m average time
85% success
0/120
Asked in companies
Goldman SachsOYOExpedia Group

You are given a binary tree having 'n' nodes.


The boundary nodes of a binary tree include the nodes from the left and right boundaries and the leaf nodes, each node considered once.


Figure out the boundary nodes of this binary tree in an Anti-Clockwise direction starting from the root node.


Example :
Input: Consider the binary tree A as shown in the figure:

alt text

Output: [10, 5, 3, 7, 18, 25, 20]

Explanation: As shown in the figure

The nodes on the left boundary are [10, 5, 3]

The nodes on the right boundary are [10, 20, 25]

The leaf nodes are [3, 7, 18, 25].

Please note that nodes 3 and 25 appear in two places but are considered once.
Problem approach

We break the problem in 3 parts: 

1. Print the left boundary in top-down manner. 
2. Print all leaf nodes from left to right, which can again be sub-divided into two sub-parts: 
Print all leaf nodes of left sub-tree from left to right. 
Print all leaf nodes of right subtree from left to right. 
3. Print the right boundary in bottom-up manner.
We need to take care of one thing that nodes are not printed again. e.g. The left most node is also the leaf node of the tree.

Try solving now

3. Technical Question

What are recursion and their types with code?

Problem approach

I only know three types of recursion and he was satisfied with them.

4. OS Question

What is the difference between process and threading?

Problem approach

Tip 1 : For Operating System, I have used Love Babbar CheatSheet, InterviewBit, and Gate Smashers OS Playlist. You can also refer Sanchit Jain Playlist
Tip 2 : Try to answer exactly and with some example

03
Round
Easy
HR Round
Duration20 minutes
Interview date14 Aug 2021
Coding problem3

The HR round is to judge your personality, your strengths, your weaknesses, your capability to handle the role, to check your background, and to understand if you're the right fit for this job.

1. Basic HR Question

Introduce yourself

Problem approach

Tip 1 : Try to add all the summaries of your resume in 2-3 lines.
Tip 2 : Tell something different than your resume.

2. Basic HR Question

Why do you want to join Morgan Stanley?

Problem approach

Tip 1 : Do good research about the company and recruiters. Research the company you are interviewing for thoroughly.
Tip 2 : Also, if you know your interviewer beforehand, follow on LinkedIn to know more about their work.

3. Basic HR Question

Then He asked me about my projects and He mainly focused on my group project.

Problem approach

Tip 1 : Try to explain your projects briefly.
Tip 2 : Tell about your techstack

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Morgan Stanley
1783 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Morgan Stanley
2243 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Morgan Stanley
3045 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Morgan Stanley
1221 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes