← 返回 pinterest 的题目列表Longest Substring with Repeated Character
类型:online_judge
Given a string, write a program to find the longest substring with repeated characters. For example, the longest substring with repeated characters in the string 'abcddeee' is 'eee'. Input: A string. Output: An integer representing the longest substring. Constraints: The length of the string does not exceed 10^4.
Example
Input
abcddeee