Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Œ_Œ solution in Speedy category for Double Substring by blankplank
def double_substring(line):
res = 0
x = 1
while x <= len(line):
if line[:x] in line[x:]:
res = max(res,len(line[:x]))
x += 1
else:
line = line[1:]
return res
Aug. 28, 2017