i am getting the correct answer for the sample test cases but all the test cases showing wrong answer
Getting wrong answer in median in a stream of running number
Hey @Jainish-Patel-1007094602980100
You only have to return the integer part.
So for stream 1 2
Your output should be 1 1
This is the only correction you have to do on line 60
cout << (int)med <<" ";
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.