IntermediateRating 1300
Longest Run Without Repeats
Print the length of the longest piece of the string (consecutive characters) with no repeated character.
Input
One string (length ≤ 10⁵).
Output
One integer.
Sample 1
Input
abcabcbb
Output
3
Sample 2
Input
bbbbb
Output
1
Output appears here