Showing Posts From
Substrings
- 01 Dec, 2025
Two Pointers & Sliding Window (Advanced)
Week 19 notes: Phase 2 kicks off by pushing the two most reused array patterns to medium/hard. Variable windows with a shrink rule, the at-most/exactly counting trick, and multi-pointer partitioning.
- 23 Jul, 2025
Sliding Window Algorithm - Fixed & Variable Length
Week 0 notes on the sliding window: when to use it, fixed vs variable windows, and how it turns a lot of subarray and substring problems from O(n^2) into O(n).