PHASE 04

👉 Two Pointers & Sliding Window

Walk two fingers along an array, or slide a window across it — and solve pair sums, palindromes, longest substrings and more in a single pass.

⏱️ ~1.5 hours of lessons 📚 2 lessons ✏️ 7 exercises Medium
▶ Start this phase

🎯 In this phase you will…

  • Apply opposite-end two pointers
  • Apply same-direction pointers
  • Use fixed and variable sliding windows

📺 Lessons in this playlist

📝 Phase test

Concept questions, pseudocode writing, tracing and debugging — check you’re ready for the next phase.

💡 Concept check
What is the time complexity of the two-pointer pair search on a sorted array?