Question DSA-TP-0002
EasyWhich problem is naturally solved with two pointers starting at both ends of a sorted array?
- A.
Finding a pair with a given sum
- B.
Reversing a linked list
- C.
Show answer and explanation
Answer: A
If the sum is too small, move the left pointer right; if too large, move the right pointer left.