For "abcabcbb", what is the longest length?
Practice this question from Longest Substring Without Repeating Characters - Sliding window Pattern Practice Quiz, with options and an explanation.
Question
For "abcabcbb", what is the longest length?
Option A
1
Option B
2
Option C — Correct answer
3
Option D
7
Explanation
The longest duplicate-free substring length is 3.