Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3th solution in Speedy category for Long Repeat by Crachton
from itertools import groupby
def long_repeat(string):
if not string: return 0
return max(len(list(g)) for _,g in groupby(string))
Oct. 18, 2017
Comments: