not passing all test cases
1 count----------
@i_am_dekard_shaw you are not updating the best properly, suppose a case where k>number of zeros then best is not updated anywhere.
If this resolves your doubt mark it as resolved.
still not working
@i_am_dekard_shaw sorry for bit late reply, but I saw your code the updates are still not done in right way. Keep in mind values should be changes only when we find a better best.
Here I am attaching code for reference
If this resolves your doubt mark it as resolved.
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.