← Morgan Stanley questions

Find median from a stream of numbers without extra memory

Filed under Morgan Stanley

Find the median of an infinite stream of numbers. Note: The constraint 'without extra memory' is physically impossible for a stream; the standard interpretation is to use O(log N) or O(1) space…

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.