End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
lo and a min-heap hi.num, insert it into lo.lo to hi.hi has more elements than lo, move the top element from hi to lo.lo has one more element, the median is the top of lo.