← Morgan Stanley questions
CodingReported in a candidate post, Mar 2022

Print an array in wave form

Filed under Morgan Stanley

Print an array in wave form. The report does not say which meaning was intended; the commonly asked version is to rearrange the array so that a[0] >= a[1] <= a[2] >= a[3] <= ... (alternating high and…

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.