Sliding Window #01
Medium Longest Substring Without Repeating Characters
Track the longest contiguous substring whose characters stay unique.
Solved sliding windowstringlast seen index
Grow and shrink a window while maintaining an invariant instead of restarting every substring check. The focus here is window invariants and frequency tracking. Official LeetCode problems are linked on every page instead of being mirrored here.
Every page keeps the problem summary, recognition pattern, reasoning, pitfalls, and the exact C++ source used on the site.
Track the longest contiguous substring whose characters stay unique.