median in a stream of running integer
Why my code is giving wrong value
hello @shashankmaheshwari054
pls save ur code here->https://ide.codingblocks.com/
and share its link with me
i am using collabrate mode
yeah , i can see ur code now
check now->
a) at one place u were using top in place of pop ( probably a typo)
b) use int for median , becuase in out we need only integer part
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.