Back to QuestionsPractice with This Question
Find Median from Data Stream
136.1K views•Asked at IBM•
Hard
Question Explain
Design a data structure that supports adding new integers and finding the median efficiently. Use two Heaps (Min-Heap and Max-Heap).
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.