Wrong answer, still my solution got accepted(CHCBOX)

For the question CHCBOX of March Cookoff,
My solution for the test case-

Test Case

1
6
2 1 1 1 1 2

is giving 0, whereas the answer should be 2. Not only mine, I checked many other solution, they also give 0.
This solution of a user gives the correct answer.
Am I missing something or are the test cases weak?

3 Likes

True bro.

The problem has weak testcases!

Answer should be 2 as per your given test case.
Test cases are weak. you can take help of editorial.

Yup I thought so. There are many other test cases too, where my sol fails.
Thank you for the help🙂