Please see my submission and help, cant find the mistake,
slb and sla are variables for number of kicks left,
a and b are for counting successful kicks.
no answer on test case
1
4
11111110
1 Like
check
4
10010001
1 Like
I have made some changes to your solution. Have a look at it and try to understand what was the mistake you made. Still, if you have any questions, feel free to ask. Hope this helps
1 Like
Thanks guys solved