Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner: no import, max len 99 solution in Creative category for Double Substring by przemyslaw.daniel
double_substring=lambda s,r=range(99):max([j-i for i in r for j in r if s.count(s[i:j])*(j<=len(s))>1]+[0])
Oct. 12, 2017