InterviewLegend

Array and Matrix Manipulation

Alex Chen24 min readUpdated 78 real interview reports

The array and matrix problems at Morgan Stanley mostly come from lateral Java loops. One came from the first round of an Associate loop, and another turns up in both lateral and campus rounds.

None of these needs a special data structure. You move indexes around inside one array or one grid, and the hard part is keeping track of them. Most bugs happen at an edge, like the last pass over a shrinking range or a repeated value. Before you run your code, trace each problem by hand on a tiny input, and say the edge cases out loud so the interviewer hears that you checked them.

Morgan StanleyPremium lesson · Coding round

The 3 Morgan Stanley problems are below.

  1. A Premium questionCoding · Medium
  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.