Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Long Repeat Inside by _Chico_
def repeat_inside(line):
result = ''
for i in range(len(line)):
for j in range(len(line) - i):
s = line[i:i + j + 1]
for k in range(2, len(line) // len(s) + 1):
ls = s * k
if ls in line and len(ls) > len(result):
result = ls
return result
July 10, 2021