Add sliding-window module: 12 sliding window and two-pointer interview problems, brute-force cross-checks, dry-run traces, operation counts, pitfalls (11 tests)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6EqSkUWKNBc8i3Q3U
This commit is contained in:
2026-11-09 08:40:07 +00:00
co-authored by Claude Sonnet 5.5
parent 4a9021d936
commit 911aef5515
26 changed files with 1600 additions and 0 deletions
@@ -0,0 +1,9 @@
Max sum of 3 consecutive elements in [2, 1, 5, 1, 3, 2]
=======================================================
first window [2, 1, 5] sum=8 best=8
right=3 +1 -2 window=[1, 5, 1] sum=7 best=8
right=4 +3 -1 window=[5, 1, 3] sum=9 best=9
right=5 +2 -5 window=[1, 3, 2] sum=6 best=9
answer = 9