Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Creative category for Long Repeat by wbl4126
import re
def long_repeat(line: str) -> int:
return max([len(l[0]) for l in re.findall(r"((\w)\2*)", line)]) if line else 0
March 9, 2020