← Morgan Stanley questions

Basic array problems and sorting

Filed under Morgan Stanley

Four small array tasks: (1) count the occurrences of an element in a long sorted array, (2) find the maximum of an unsorted array, (3) write bubble sort, and (4) find the missing number in an array…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Morgan Stanley questions

Collected from public candidate posts and coding forums. Updated Nov 2026.