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?
Consider the test input:
1 5 0101011110
1 3 010111
Try this case
Thanks mates, tweaked it got an AC.