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
This question is part of this quiz :
Quiz on Two Pointer Technique for DSA