Sliding window turns "check every subarray" (O(n²)) into one pass (O(n)). Grow the window on the right, shrink it on the left, and keep state you can update in O(1). 1. Spot it Use a sliding window wh
Algorithms, AI Engineering, Full Stack Systems
Code got cheap. Being right didn’t. Writing about AI engineering, distributed systems, algorithms, and product.
Markdown supported · ⌘↵ to post
No responses yet.