Median in a tsream of integer

Sir/mam,
Only 2 test case passed.
https://ide.codingblocks.com/s/258849.

@Korou what if arr[i]==median, you never insert this element!
so you may modify the statement as
if(arr[i]>=median){
minheap.push(arr[i]);
}
this will pass all the test cases!

Thank A LOT SIR NOW IT PASS ALL TEST CASE

Great!! Mark doubt as resolved if satisfied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.