Numbers arrive one at a time. Support adding a number and reporting the median of everything seen so far, efficiently.
Numbers arrive one at a time. Support adding a number and reporting the median of everything seen so far, efficiently.
Opens with the full question.