Skip to content

Two heaps for a running median [mp]

Micro pattern

Description

Balance lower and upper heaps so their roots determine the current median.

Problems