← Two Pointers Quiz: all 8 questions
Two Pointers Quiz · Question 2 of 8
In Two Sum II (sorted array), the current sum is SMALLER than the target. What do you do?
In Two Sum II (sorted array), the current sum is SMALLER than the target. What do you do?
- A.Move the left pointer right
- B.Move the right pointer left
- C.Move both pointers
- D.Restart from the beginning
Answer & explanation
Correct answer: Move the left pointer right
Moving left → right picks a bigger number, which is the only way to increase the sum.
Can you get the rest right without peeking?
Take the timed Two Pointers Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →