1 count problem


all test cases not passing

@Bansaljatin05 for the input
1 0
0

the output should be
0
0

but your output is
0
1

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.

https://ide.codingblocks.com/s/207640 now also one test case is failing

@Bansaljatin05
Your code is failing this case
Q : 7 0
0 1 0 0 0 1 0
A : 1
0 1 0 0 0 1 0

can you please rectify it…i am unable to do that

@Aarnav-Jindal-1059677350830863
You can verify your approach with this one
Slight issues https://ide.codingblocks.com/s/197791

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.