medium
strings
sliding-window
hashmap
Given a string s, find the length of the longest substring without repeating characters.
Examples
Example 1
Input: s = "abcabcbb"
Output: 3
Example 2
Input: s = "bbbbb"
Output: 1
Example 3
Input: s = "pwwkew"
Output: 3
🔒 5 hidden
Running will execute all 8 cases, including 5 hidden ones.