Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Double Substring by _Chico_
import re
def double_substring(line):
matches = re.findall(r'(.+)(?=.*\1)', line)
largest = '' if not matches else max(matches, key=lambda m: len(m))
return len(largest)
May 14, 2021