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

Technology Analyst

Morgan Stanley
upvote
share-icon
2 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
Cracked GATE and joined IIIT Bengaluru. I have completed my M.Tech in Computer Science. Very much thankful to IIIT Bangalore for providing ample opportunities for placements despite the layoffs.
Application story
It was a campus placement. So there was nothing much to do for the application. We had to apply for the companies that we were interested in.
Why selected/rejected for the role?
I did not know why I was rejected for this role as I had cleared the written test and was eliminated after the 1st round of interviews. I was not given any feedback. I remember answering well to their questions in the interview.
Preparation
Duration: 3 months
Topics: Data structures, Web development, Databases, Operating Systems, Algorithms
Tip
Tip

Tip 1: Prepare coding well. It will help in written tests and interviews. 

Tip 2: There will be a debugging section as well as a coding section, so prepare accordingly.

Application process
Where: Campus
Eligibility: No criteria as such
Resume Tip
Resume tip

Tip 1: Include projects you are strong in, as you may be asked to explain one or more of them. 

Tip 2: Always practice your coding skills. Don't skip topics like Graphs and Dynamic Programming (DP). These are important and often tricky. There will be a question from graphs in the coding section of the written test.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration100 minutes
Interview date14 Oct 2022
Coding problem3

The timing was in the evening from 7 PM to 8:20 PM.

1. Minimum Time To Visit All Points

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonMorgan Stanleyalibaba

Ninja lives in a 2D plane where each location is represented with integer coordinates ‘[X, Y]’. You are given an array ‘POINTS’ containing ‘N’ such points. Ninja lives at the location ‘POINTS[0]’ and wants to visit all the remaining ‘N-1’ points in the order given by the ‘POINTS’ array. Your task is to help ninja find the minimum time (in seconds) required to visit all the points in the given order (starting from ‘POINTS[0]’).

The ninja can travel according to the following rules :
  • In one second, the ninja can either:
    • Move vertically by one unit, i.e., along the y-direction.
    • Move horizontally by one unit, i.e., along the x-direction.
    • Move diagonally by ‘sqrt(2)’ units, i.e., move one unit horizontally then one unit vertically.
  • The ninja must visit the points in the exact order as they are given the ‘POINTS’ array.
  • The ninja is allowed to pass through points that may be given later in the order, but these points will not be counted as visited.


For Example :
‘POINTS = [ [3, 1], [-1, 3], [2, 0] ]’, ‘N = 3’

Example

The path with minimum time is: ‘[3,1] -> [2,2] -> [1,3] - > [0,3] -> [-1,3] -> [0,2] -> [1,1] -> [2,0]’.

Time taken from [3,1] to [-1,3] = 4 seconds.
Time taken from [-1,3] to [2,0] = 3 seconds.

Total time = 7 seconds. Thus, you should return ‘7’ as the answer.
Try solving now

2. Largest subarray with equal number of 0s and 1s

Moderate
10m average time
85% success
0/80
Asked in companies
CognizantMedia.netMorgan Stanley

You are given an array consisting of 0s and 1s. You need to find the length of the largest subarray with an equal number of 0s and 1s.

For example:

If the given array is: [0, 0, 1, 0, 1] The largest subarray would be: [0, 1, 0, 1] (last 4 elements) having length 4.
Try solving now

3. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
MicrosoftAmazonUber

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date17 Oct 2022
Coding problem3

The round was online and it took place in the morning from 11 AM to 12 PM. Starting 10 mins went to asking questions like "Tell me about yourself" and "What do you know about the company" etc. The interviewer was friendly.

1. Rotate Linked List

Moderate
25m average time
65% success
0/80
Asked in companies
Morgan StanleyTata Consultancy Services (TCS)PharmEasy

You are given a linked list having ‘n’ nodes and an integer ‘k’.


You have to rotate the linked list to the right by ‘k’ positions .


Example :
Input: linked list = [1 2 3 4] , k = 2

Output: 3 4 1 2

Explanation:
We have to rotate the given linked list to the right 2 times. After rotating it to the right once it becomes 4->1->2->3. After rotating it to the right again, it becomes 3->4->1->2. 


Try solving now

2. Longest Substring Without Repeating Characters

Moderate
20m average time
80% success
0/80
Asked in companies
AmazonSAP LabsTech Mahindra

Given a string 'S' of length 'L', return the length of the longest substring without repeating characters.

Example:

Suppose given input is "abacb", then the length of the longest substring without repeating characters will be 3 ("acb").
Try solving now

3. Technical Question

Explain any project from your resume and how is it helpful to the community.

Problem approach

Tip 1: As I said before, explain the one in which you had the maximum contribution.
Tip 2: You will get follow-up questions as to why you have added a specific feature, be ready for such questions.
Tip 3: Know and research well about the tech stack you have used in the project.

Here's your problem of the day

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

Skill covered: Programming

What is the output of print(type("Python"))?

Choose another skill to practice
Similar interview experiences
company logo
Technology Analyst
4 rounds | 11 problems
Interviewed by Morgan Stanley
691 views
0 comments
0 upvotes
company logo
Technology Analyst
5 rounds | 13 problems
Interviewed by Morgan Stanley
809 views
0 comments
0 upvotes
company logo
Technology Analyst
3 rounds | 7 problems
Interviewed by Morgan Stanley
4804 views
0 comments
0 upvotes
company logo
Technology Analyst
2 rounds | 3 problems
Interviewed by Morgan Stanley
1106 views
0 comments
0 upvotes