First solution in Clear category for Double Substring by yoichi
"""length of the longest substring that non-overlapping repeats more than once."""
for i in range(len(line), 0, -1):
for j in range(len(line) - i + 1):
substr = line[j:j+i]
if substr in line[j+i:]:
Aug. 23, 2017