← 返回 coinbase 的题目列表Longest Consecutive Identical Characters
类型:online_judge
Given a string, find the length of the longest consecutive sequence of identical characters. For example, for the input string "aaabbc", the longest consecutive identical character sequence is "aaa", with a length of 3.
Example
Input
aaabbc