loading…
Write longest_unique(s) that returns the length of the longest substring with no repeated character.
longest_unique("abcabcbb") -> 3 # "abc"
longest_unique("pwwkew") -> 3 # "wke"
Stuck on the idea itself? The sliding window lesson walks through the pattern from scratch.