Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
(•‿•) solution in Clear category for Double Substring by vmiimu
from itertools import combinations as combo
def double_substring(s):
subs = [len(s[b:e]) for b,e in combo(range(len(s)+1),2) if s.count(s[b:e]) > 1]
return max(subs) if subs else False
Jan. 21, 2019
Comments: