Statement
Write pairSumSorted(sorted, target): sorted is in ascending order. Return the indices [i, j] (with i < j) of two numbers that add up to target, or [] if there are none. If there are several pairs, the one with the smallest i and, for that i, the largest j. This time without a map: O(1) memory.