Apple SDE OA - 2022 | Advanced Data Structures (Two Heaps)
Question · Posted Jun 2026
Question 1: Find Median from Data Stream Problem Statement The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value, and the median is the mean (average) of the two middle values. For example, for arr = [2,3,4], the median is 3. For example, for arr = [2,3], the median is (2 + 3) / 2 = 2.5. Implement the MedianFinder class to process a massive, continuous ...
The full answer & interview discussion are available to premium members.
Log in Create a free account