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