DSA Week 2 Problem in Penalty ShootOut-II [PSHOT]

Can anyone help me out…why my code is giving WA for this problem CodeChef: Practical coding for everyone
My code is… CodeChef: Practical coding for everyone
I checked the successfully submitted codes too and I think my code and logic seems correct.

Consider the test input:

1
4
10101000
2 Likes

Thanks bro…I got the problem in my code…corrected it and got AC.

1 Like