Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Double Substring by fed.kz
def double_substring(text):
max_len=0
while text!='':
for num in range(1,len(text)):
if text.count(text[:num])>1:
max_len=len(text[:num]) if len(text[:num])>max_len else max_len
text=text[1:]
return max_len
Oct. 1, 2018