Question DSA-TP-0023
EasyIn the sorted pair-sum method, what do you do when the current sum is greater than the target?
- A.
Move the left pointer right
- B.
Move the right pointer one step left
- C.
Show answer and explanation
Answer: B
Moving left from the right end picks a smaller number, decreasing the sum.