Earliest pair with a target sum

0
Remix

Given an array of numbers and a target, find the pair of elements that sums to the target and appears earliest in the array.

AmazonTechnical phone screenLast asked Aug 2026
No answer yet. Write the first one; the best answer gets endorsed.