Longest Substring Without Repeating CharactersMedium

hash table string sliding window

Find the length of the longest substring of s with no repeated character. Three approaches, same problem — switch between them and watch the window expand, shrink, and jump.

Press play to watch the algorithm run.
Metrics
Legend
How it works
0 / 0