Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Itertools solution in Clear category for Long Repeat by maxalex324
from itertools import groupby
def long_repeat(line):
return max([len(list(v)) for _,v in groupby(line)]) if line else 0
June 9, 2020
Comments: