Medium
Find the longest substring with all unique characters.
Return the length of the longest substring of the input string that contains no repeated characters.
Examples
Input: s = "abcabcbb"
Output: 3
Constraints
- 0 <= s.length
Coding Challenge
Find the longest substring with all unique characters.
Return the length of the longest substring of the input string that contains no repeated characters.
Input: s = "abcabcbb"
Output: 3
Preparing your coding workspace...