← Morgan Stanley questions

Sort Colors, Min Stack, and First Unique Character in a String

Filed under Morgan Stanley

Solve three distinct problems: Sort Colors (Dutch National Flag problem), implement a Min Stack supporting push, pop, top, and retrieving the minimum element in O(1), and find the first unique…

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.