Median in astream of running integer


whats wrong in this code

you need not to use float as in question it is not mentioned to print ans in decimal digits also

also print endl after each testcases


@asaurabh_26 i have made changes it shows tle in two test cases

at line no 28
correct condition is
if(d<=median){

you forgot equal to

if you want to ask something about this feel free to ask
i hope this helps
if yes show your response with :heart: and don’t forgot to mark doubt as resolved

@asaurabh_26
it still showing tle for two test cases

i have submitted the code before reply to you and it is passing the testcase
please check once again
and let me know it is working or not

now its passing thanks a lot

okay great :+1:

so now please mark doubt as resolved