Dynamic Programming
Dynamic programming at Morgan Stanley mostly sticks to the textbook set. One table problem has been close to a regular in the campus coding section, though it rarely arrives under its own name. Another turns up in online assessments on both tracks, sometimes with a twist on what to return, and the third is the hard one, which a lateral round has set with a smaller cap.
The most common DP problem has its own walkthrough in the Arrays, Strings & DP lesson, and the three problems here use the same habit. Before you write a loop, say what one cell of the table means and which earlier cells it reads. Once both are clear the code is short, and you'll have time left to offer the space saving.
Morgan StanleyPremium lesson · Coding round
The 3 Morgan Stanley problems are below.
- A Premium questionCoding · Medium · Signature problem
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Hard
Each with hints, the follow-up and a tested solution.
Get the Morgan Stanley questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
Morgan Stanley interview guideKnow what Morgan Stanley asks before you walk in.
33 coding · 4 system design · 19 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.