DSA Key Problems

Two Sum II Input Array Is Sorted

Given a nondecreasing integer array and a target, return the one-based positions of two distinct elements whose sum equals the target.