my code is not passing all test cases, please review it :- https://ide.codingblocks.com/s/264151
Wrong Anser on submit
the problem exists in printing the correct array after switching k zeros, instead of making changes to temp, each time len is greater than maxLen store the index of left and right and use it to print the correct array
Corrected Code
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.