do you think the question is asking you to find
5 consecutive 0's OR 5 consecutive 1's, NOT both
or
5 consecutive 0's AND/OR 5 consecutive 1's
? it says "either" but i'm not sure what it means.
I believe it will allow both, I.E 1111100000 and 0000011111 count. (make sure not to double count them!)
Speaking of double counting, I was trying to devise a way to help with double counting. Here it the method I'm trying use:
Start with 00000----- and figure out all the possibilities. Then move your 'forced zeros' over, so you're now working with -00000----. However, i realized there would be a lot of double counting (for example, 0000001111 would be counted in 1st position and 2nd position) So i was thinking I could force uniqueness by simply putting a 1 at the beginning of my 0s. So my second position would be 100000----, my third position would be -100000---, etc. I feel like this should be accurate, but am I undercounting now?