VISUALGO//POINTERS
variable window · two-pointer trace console · O(n)
Goal:Find the longest substring without repeating characters. The window expands when characters are unique, and contracts when a repeat is found.
a
0b
1c
2a
3b
4c
5b
6b
7▲
L,RINPUT STRING (max 20)
READOUT
step0 / 15
window length1
longest so far1
actionexpand
statusIDLE