Find Median from Data Stream
Design data structure to find median from continuous stream of integers
Median of Two Sorted Arrays
Given two sorted arrays nums1 and nums2, return the median of the two sorted arrays. The overall run time complexity should be O(log(min(m,n))).
Sliding Window Median (LC 480) — Two Heaps, Lazy Delete
Hard LC 480: rolling median via sliding window + two heaps w/ lazy deletion. O(n log k) time, O(k) space. Step-by-step solution—prep now.