Little Elephant and Bombs Problem Code: LEBOMBS

Little Elephant and Bombs Problem Code: LEBOMBS


Problem link is in the link above on the top
I am getting count as zero in every case please tell me where i am wrong
1 Like

The input is in form of single string of 0 and 1’s
so you are taking so many inputs for single ‘t’ testcase.
You may take input as string and then traverse character by character and store in integer array.