DSA Tutorial - Two Pointer Technique: Question 4

Last Updated :
Discuss
Comments

Given the sorted array arr = [2, 4, 6, 8, 10] and a target sum of 12, what will be the action when the two pointers approach a pair whose sum is less than 12?

Move the right pointer leftward

Move the left pointer rightward

Both pointers move inward

None of the above

Tags:
Share your thoughts in the comments