Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Long Repeat by since782312
import itertools
def long_repeat(line):
lst = [len(list(g)) for k, g in itertools.groupby(line)]
return len(lst)>0 and max(lst) or 0
April 24, 2019
Comments: