← PayPal questions

Find the first pair of elements in an array with sum equal to K

Filed under PayPal

Given an array of integers A and a target integer K, return the indices or values of the first pair of elements whose sum is exactly equal to K. If multiple pairs exist, return the one that appears…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related PayPal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.