This is my solution https://katb.in/meow1309 . problem link CodeChef: Practical coding for everyone . It passes all example cases and also tried some my test cases. Please someone help to find whats wrong with the solution. provide some test cases whch fails with my solution
1
4
01010111
expected output - 5 but mine returns 6.
This case fails for my solution. fixed. Correct Answer
My solution passes the test case you mentioned and also the sample test cases.
But, results in a WA when submitted.
Can you please look at it?
https://katb.in/meow1314
Consider the test input:
1
5
0101011110
1 Like
1
3
010111
Try this case
1 Like
Thanks mates, tweaked it got an AC.
1 Like