Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
groupby and max solution in Clear category for Long Repeat by cheikhnamouna
from itertools import groupby
def long_repeat(s):
return max([len(list(g)) for _, g in groupby(s)] or [0])
Dec. 30, 2018