Given a string s, find the length of the longest contiguous substring that contains no repeated characters.
s
(may contain letters, digits, symbols, and spaces).
s
that have all unique characters.
s = "abcabcbb"
→ output
3
(e.g., "abc")
s = "bbbbb"
→ output
1
(e.g., "b")
s = "pwwkew"
→ output
3
(e.g., "wke")
0 ≤ len(s) ≤ 10^5
O(n^2)
.