Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
groupby solution in Clear category for Long Repeat by gyahun_dash
from itertools import groupby
def long_repeat(line):
return max((len(''.join(g)) for k, g in groupby(line)), default=0)
Nov. 14, 2017