Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: groupby solution in Clear category for Long Repeat by przemyslaw.daniel
def long_repeat(string, gb=__import__('itertools').groupby):
return max([len(list(g)) for _, g in gb(string)]+[0])
Aug. 21, 2017
Comments: