Median of stream of integers
http://www.geeksforgeeks.org/median-of-stream-of-integers-running-integers/
Nice explanation : http://algorithmsandme.com/2014/08/heaps-find-median-of-stream-of-integers/
Codeforces Round 950 Solution Discussion