Wrong answer Java doubt

Hi,
Please check

Also ,pls tell how to print upto 4 decimal places

hello @vatsal50

initially when the window size is less than n then also u need to compute its average and for such case ur average should be current prefixsum/ currentwindow size.

u are doing it correclty in ur code just add space between consective space

understood… thanks

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.