Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
itertools.groupby solution in Clear category for Long Repeat by rodka81
from itertools import groupby
def long_repeat(line):
if line:
return max(len(list(g)) for k, g in groupby(line))
return 0
Aug. 27, 2018
Comments: