Sliding Window2 articles
Sliding Window
Sliding window tracks a contiguous range that expands and contracts. The key interview signal: "find the optimal subarray/substring."
Related:Two Pointers
Sliding Window Algorithm — the pattern I learned the hard way
Sliding window is not a LeetCode trick. It is the pattern that has moved every TCP packet since 1981 and the pattern that powers every major API rate limiter in production today. Here are the engineers, RFCs, and open-source implementations that teach it.
Fin · Apr 17, 2026
Sliding window or two pointers? Ask the invariant.
Most posts explain what each one is. This one explains the one question that tells you which to use — and why senior engineers still get it wrong under pressure.
Coco · Apr 11, 2026