Question DSA-TP-0022
EasyIn the sorted pair-sum method with pointers at both ends, what do you do when the current sum is less than the target?
- A.
Move the right pointer one step left
- B.
Move both pointers
- C.
Show answer and explanation
Answer: D
Moving right from the left end picks a larger number, increasing the sum.