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 pricingTry every start and compare characters until a mismatch.
What this asks
Implement pattern search by trying every start.
An outer loop over starts up to n - m and an inner compare; a start is recorded when the inner loop consumes the pattern.
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