Interview Coder drill
Interview Coder drill
Interview Coder drill
20:00
Given a string, find the length of the longest substring with no repeated characters. Print the length.
Example 1
Input: s = "abcabcbb"
Output: 3
abc is the longest substring without repeats.
Constraints
Capture your plan, then rate how clearly you recalled it before submitting.