This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingZ values equal to the pattern length mark the matches.
What this asks
Find every pattern occurrence with the Z array.
Compute Z over pattern plus separator plus text; every Z value equal to the pattern length is a match.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing