Linked Lists and Queues
Morgan Stanley asks pointer questions in its live technical rounds, in both campus and lateral loops. They're short, so interviewers expect you to finish them. One lateral candidate got the same question in two rounds in a row, with a different follow-up each time.
Each of the three problems fits in a few lines once you see the idea, and two of them hinge on a single trick, so try them yourself before reading the hints. The queue is the quickest place to start. The two list problems both need care at the tail.
Draw the list before you type. Boxes and arrows on paper catch most pointer bugs early. As you code, say the edge cases out loud, like the tail node or a list with one element.
Morgan StanleyPremium lesson · Coding round
The 3 Morgan Stanley problems are below.
- A Premium questionCoding · Easy · Frequently asked
- A Premium questionCoding · Medium
- A Premium questionCoding · Medium
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.