Problems > Strings Avoiding 010 > Editorial

Strings Avoiding 010 — Solution & Editorial

Back to the Problem

KMP-automaton transfer matrix (states = matched-prefix length, rejecting completion) raised to the N-th power.

Complexity: O(m3 log N)