Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Long Repeat by OrginalS
def long_repeat(line):
res = 0
count = 0
temp = ""
for letter in line:
if letter == temp:
count += 1
else:
count = 1
temp = letter
if count > res:
res = count
return res
Sept. 3, 2019
Comments: