← Morgan Stanley questions
CodingReported in a candidate post, Jul 2021

Stack operations sequence

Filed under Morgan Stanley

Given an input array of elements and a target output array, determine the sequence of push and pop operations on a stack required to transform the input order into the output order.

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.