Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
split in split solution in Clear category for Double Substring by pherapont
def double_substring(line):
res = []
for i in range(len(line)-1):
j = 1
while line[i:i+j] in line[i+j:]:
j+=1
res.append(j-1)
return max(res) if res else 0
June 10, 2019
Comments: