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 pricingConcept theory, tags and interview notes for Z-algorithm.
What this asks
Compute the Z array and use it for pattern matching.
Z values record prefix matches at every position; pattern plus separator plus text turns matches into Z values equal to the pattern length.
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