Running Stream Median
Hi @gautam74
ur code is missing the case when left_heap.size() < right_heap.size()
refer this https://ide.codingblocks.com/s/610757
I added an endl at line 57 but it is still not working…
are bro endl ki bat hi ni hai…
left_heap.size() < right_heap.size() ye condition to check ni krre ho tum… refer my code na
sir i have copied and submitted your code and only one test case is being accepted
Hi Gautam,
ig the code i sent u was not the updated one… try this https://ide.codingblocks.com/s/617889 it is passing all test cases…
I hope ur doubt is cleared now??
yes it is. thanks a lot for your help
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.