Tag
#sliding-window
2 articles tagged sliding-window.
DSAbeginner
Coding Questions to Memorise: The Pattern Templates That Crack the Coding Interview
Coding questions to memorise for interviews: the pattern templates — two pointers, sliding window, binary search, backtracking, DP — that solve most coding interview questions from memory.
22 min read
DSAintermediate
Sliding Window: Turning O(n²) Subarray Scans Into One Clean Pass
The sliding window algorithm explained: fixed and variable windows, the two-pointer technique, amortized O(n) time complexity, and interview code for max subarray sum and longest substring.
13 min read