Otherwise update and continue by setting that bit in the checker
checker = checker | ( 1 << bitAtIndex ) NEW_LINE for i in range ( k , len ( s ) ) : NEW_LINE if ( s [ i - k ] != s [ i ] ) : NEW_LINE INDENT return False NEW_LINE DEDENT return True NEW_LINE