Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Double Substring by Tinus_Trotyl
def double_substring(line):
for ln in range(len(line)-1, 0, -1):
for i in range(len(line) - ln + 1):
if line.count(line[i:i+ln]) > 1: return ln
return 0
Aug. 12, 2017
Comments: