Feedback for BROKPHON problem

Problem Link: BROKPHON Problem - CodeChef

Feedback

can you have a look at the output and the test cases again, the output is incorrect
3
7
1 1 1 3 3 3 2
5
1 3 1 1 1
4
5 5 5 5
output
4
3
0
in the first test case
1 1 1 3 3 3 2
the 4th player has misheard and the last player so the output should be 2 not 4
in the second test case
1 3 1 1 1
the 2nd player has misheard and 3rd player has misheard so the output should be 2 not 3

@anurag59
in the question it is said that.

Please help Chef to find the number of players that could mishear the message or whisper it wrongly.
``
so u have to count for the persons who can whispers it wrongly also.
1 Like

Got it, Thank You so much, IDK how I missed it.