Search
Lessons (4)
- Two Pointers & Sliding Window
… To see the next group, you don't rebuild the window; you slide it: one carriage leaves on …
- DSA Interview Patterns Cheat Sheet
… Contiguous subarray<br/ or substring?} B -- yes SW[Sliding window / Prefix sums] B -- no C{Tree or graph …
- Scaling, Load Balancing & Rate Limiting
… Fixed window Count per minute (resets at :00) Simple; allows 2× bursts at window edges Sliding window Count …
- Stacks & Queues
… Deque (double-ended) Add/remove at both ends Sliding window maximum Priority queue Highest priority out first ER …