LeetCode Solutions

Sliding Window

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.

1 published solutions
3 distinct tags
0 easy / 1 medium / 0 hard difficulty mix
May 21, 2026 most recently updated page

Published pages in this category

Every page keeps the problem summary, recognition pattern, reasoning, pitfalls, and the exact C++ source used on the site.

Sliding Window #01

Longest Substring Without Repeating Characters

Medium

Track the longest contiguous substring whose characters stay unique.

Solved sliding windowstringlast seen index