InterviewLegend

Linked Lists and Queues

Alex Chen22 min readUpdated 78 real interview reports

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.

  1. A Premium questionCoding · Easy · Frequently asked
  2. A Premium questionCoding · Medium
  3. 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.

Had your Morgan Stanley interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Morgan Stanley interview guide

Know what Morgan Stanley asks before you walk in.

33 coding · 4 system design · 19 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.