Technical interview guide
Sliding Window
A variable- or fixed-size window over a sequence, expanded and contracted in O(n) total instead of recomputing from scratch.
- Read
- 42 min
- Practice MCQs
- 25
- Interview QA
- 25
- Edition
- v6
- Editorial status
- Reviewed
Scope: Language-neutral, with container costs cited from CPython 3.14 and the C++ standard containers.
Interview QA
Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.
Curated: · Written: · Reviewed:
