Skip to content

little fix for IndexOfSequence function#2

Open
MichalSiatkowski wants to merge 1 commit intoJeevanJames:masterfrom
MichalSiatkowski:master
Open

little fix for IndexOfSequence function#2
MichalSiatkowski wants to merge 1 commit intoJeevanJames:masterfrom
MichalSiatkowski:master

Conversation

@MichalSiatkowski
Copy link

@MichalSiatkowski MichalSiatkowski commented Aug 19, 2020

when searching bit after bit, when couple of bits of sequence are the same and the next bit is not the same, so the sequence eventually fails to match, you have to come back searching to the begining point + 1 of previous part match, because otherwise you could miss the match in special situation when the valid match starts in the middle of that failed part match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant