HF RL Explorer

Running Median from a Stream of Integers

Running Median from a Stream of Integers: a task in Terminal-Lego-15k (Harbor dataset). Implement a program that calculates the running median from a stream of integers. For each integer read from the input, your program should output the median of all integers seen so far.

The task

Implement a program that calculates the running median from a stream of integers. For each integer read from the input, your program should output the median of all integers seen so far.

Part of PrimeIntellect/Terminal-Lego-15k.