Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] Long Repeat by mozurin
"use strict";
function longRepeat(line)
{
return line.replace(/(.)(?!\1|$)/g, '$1_').split('_').sort(
(a, b) => b.length - a.length
)[0].length;
}
June 24, 2018
Comments: