gcd-strings-length-determines-answer

Status: IN

When a common divisor exists, its length equals `gcd(len(str1), len(str2))` and the answer is simply `str1[:that_length]`

Source: entries/2026/06/06/greatest-common-divisor-of-strings-solution.md

JSON