Find two indices in a sorted array whose values sum to a target.
Constraints
Example
>>> two_sum_sorted([2,7,11,15], 9) [1,2] >>> two_sum_sorted([2,3,4], 6) [1,3] >>> two_sum_sorted([-1,0], -1) [1,2]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints