Pair with target sum
Leetcode: 167. Two Sum II - Input Array Is Sorted
Given an array of sorted numbers
and a target sum
find a pair of indices in the array whose sum is equal to the given target.
0123456247891214
Target Sum = 13
Output : [1, 4]
Approach 1: Bru...
mdirfan.hashnode.dev2 min read