Algorithm · Coinbase · Easy
For a supplied string, determine the character that appears in the longest uninterrupted run and report that character together with the run length. When several runs share the maximum length, choose the run nearest the end of the string. Input: A nonempty string made up exclusively of alphabetic characters. Output: Return a string formed by the character from the longest contiguous run followed by its count. If the maximum-length run occurs more than once, select the…
Checking your access…