Testcase 4 Failed

@ambuj_0909 Use two pointers method for this problem or else you might get tle too

I have used that approach in the above code

@ambuj Okay let me see

@ambuj_0909 Can you send me the link to the problem?

@ambuj_0909 Your code is failing for this case.
10 0
0 0 0 0 0 0 0 0 0 0
It is printing 1 0 0 0 0 0 0 0 0 0 0 0
Instead of 0 0 0 0 0 0 0 0 0 0

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.