Problems
Contests
Account
Problems
> Strings Avoiding 10101 > Editorial
Strings Avoiding 10101 — Solution & Editorial
Back to the Problem
KMP-automaton transfer matrix raised to the N-th power.
Complexity:
O(m
3
log N)
×
Refer Job