Correct answer: A. Using two indices moving through an array, often from opposite ends or at different speeds
Explanation
The two-pointer technique uses two indices moving through the array, often from opposite ends or at different speeds, common in array and string problems.
Practise 3 questions on this topic
Take Arrays & Strings — Timed Test (3 questions) — scored instantly, explanation for every question, no login.