31. Longest Unique Window
mediumstringsliding window
Return the length of the longest substring of s that contains no repeated characters.
Example 1
Inputs = "abcabcbb"
Output3
Example 2
Inputs = "bbbbb"
Output1
Example 3
Inputs = "pwwkew"
Output3
Constraints
- 0 ≤ s.length ≤ 5·10⁴