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 pricingFind the largest string that repeats to build both inputs.
What this asks
Find the largest string that repeats to build both given strings.
Only the GCD of the two lengths can work; verify that prefix by repeating it.
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