~/algor $ cat problems/string-eng-uzun-takrorsiz-qism
Longest substring without repeats
Medium
1000 ms
128 MB
62%
A string $s$ of lowercase Latin letters is given. Find the length of the longest substring of consecutive characters in which no letter repeats.
Input
One line containing the string $s$.
Output
One integer.
Note
$1 \le |s| \le 10^{5}$
$s$ consists of lowercase Latin letters (a–z) only
Examples
Input #1
abcabcbb
Output #1
3
Input #2
aaaa
Output #2
1