Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
max with default solution in Clear category for Double Substring by David_Jones
def double_substring(line):
n = len(line)
return max((len(line[i:j]) for i in range(n)
for j in range(i+1, n+1)
if line.count(line[i:j]) > 1), default=0)
May 13, 2019
Comments: