← Paytm questions

Median of infinite stream

Filed under Paytm

Design a data structure to maintain the median of an infinite stream of integers. The structure must support adding a number and querying the current median efficiently.

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 Paytm questions

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