Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Composition of Functions solution in Creative category for Double Substring by flpo
import re
from functools import reduce, partial
compose = lambda *funcs: lambda args: reduce((lambda x, f: f(x)), reversed(funcs), args)
double_substring = compose(max, partial(map, len), partial(re.findall, r'(?=(.*).*\1)'))
Sept. 7, 2017