Return the length of the longest substring without repeating characters. Variant **#20**.
Example 1
Input: s = "cdefabcd"
Output: 6
Constraints
Acceptance: 51% · Topics: sliding-window, hash-table, string
← All practice problems