Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
regex oneliner solution in Clear category for Double Substring by StefanPochmann
import re
def double_substring(line):
return max(map(len, re.findall(r'(?=(.*).*\1)', line)))
Aug. 14, 2017
Comments: