Technical interview guide
Two Pointers
Two indices moving through a sequence — from opposite ends or in lockstep — to cut brute-force O(n²) scans to O(n).
- Read
- 40 min
- Practice MCQs
- 25
- Interview QA
- 25
- Edition
- v7
- Editorial status
- Reviewed
Scope: Language-neutral, with operation costs cited from CPython 3.14 and the C++ standard containers.
Curated: · Written: · Reviewed:
