All problems
HardAlgorithms
Longest substring without repeating characters
Given a string, find the length of the longest substring where no character repeats. Sliding-window approach.
- #strings
- #sliding-window
Sample input
"abcabcbb"
Sample output
3
longest-unique-substring.py
Output
Press "Run code" to execute.
