works perfect for sample test case, but gives wrong answer in all test cases while submitting
Median in a stream of running integers
@dhairya16
Your code is correct but there is slight mistake. For each testcase you have to print output in new line but your code is printing output is single line. Just write cout<<endl; just after line 59.