Morgan Stanley Coding & Algorithms Interview Questions

Practice the exact questions companies are asking right now.

6 Questions 1 Company03.01.2026
Showing 6 results
Role
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

How do you escape the circle?

A dog runs continuously along the boundary of a circle of radius 1 at speed 4. You start at an arbitrary point strictly inside the circle and can run ...

Coding & Algorithms
3
0
49 people solved
Dec 8, 2025
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

Implement Factorial and Squares

Question In a live coding interview, write two Python functions and be ready to discuss their behavior. 1. factorial(n): Given a non-negative integer ...

Coding & Algorithms
6
0
47 people solved
Mar 1, 2026
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist

Compute maximum non-overlapping meetings

Assume you are given a list of meeting time intervals for a single person. Each meeting i is represented by a pair of integers [start_i, end_i], where...

Coding & Algorithms
2
0
48 people solved
Dec 8, 2025
Morgan Stanley logo
Morgan Stanley
Easy
Data Scientist

Compute win probability in coin-toss game

Two players, A and B, play the following game with a fair coin: - They toss the coin alternately: A tosses first, then B, then A, then B, and so on. -...

Coding & Algorithms
2
0
45 people solved
Oct 21, 2025
Morgan Stanley logo
Morgan Stanley
Medium
Software Engineer

Compute minimal cost to merge numbers

Compute minimal cost to merge numbers Given an array of positive integers, you may repeatedly perform the following operation until one number remains...

Coding & Algorithms
4
0
41 people solved
Jul 16, 2025
Morgan Stanley logo
Morgan Stanley
Medium
Software Engineer

Count decodings of a digit string

Count decodings of a digit string You are given a non-empty digit string s consisting of characters '0'–'9' and a mapping where 1->'a', 2->'b', ..., 2...

Coding & Algorithms
3
0
37 people solved
Jul 16, 2025

Explore more Morgan Stanley Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

Coding & Algorithms questions at other companies
Browse all