No Repeats Allowed (Strings)
Print the length of the longest stretch of the string in which no character appears twice.
Input: One string of lowercase letters and digits, length 1 to 200.
Output: One integer.
Difficulty: Medium. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Slide a window: grow it on the right, and shrink it from the left while it has a repeat.