The code is running absolutely fine on hacker blocks.However while submitting it is showing that there is only one test case which is not being passed.
And here is the code
Running Median Stream
@ratulhans
Use int instead of double for your code. This problem expects integer outputs instead of float or double.
Thanks a lot.Now the code is running perfectly fine
@ratulhans
Glad I could be of help. Please mark your doubt as Resolved in your Doubt Section if your issue no longer persists. If there is still any problem regarding your doubt , please let me know so I can help you out.