Finding elements in an array
Hi, I am having trouble figuring this out, hopefully someone can help me out.
I have an array:
Lets say someone searches for 6 consequtive 0s starting at 8 or 38.
If it cant find them in that section before 7,37, I dont want it to go any further, how would I know when to stop?
Also, lets say I do want it to look for the first 6 consequtive zeroes, and dont care if I skip over to the next section of 0s, so as above, but would go looking furhter into 7,37 section.
That is just part of the array.