Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Double Substring by brispol19
def double_substring(line):
return max([len(line[i: i + j]) if line.count(line[i: i + j]) > 1 else 0 for
i in range(len(line)) for j in range((len(line) - i) // 2 + 1)]) if len(line) > 0 else 0
Dec. 12, 2019