โ† Amazon questions
CodingReported in a candidate post, Oct 2014

Find pair with given difference

Filed under Amazon

Given a sorted array of integers and a target difference k, find whether there exists a pair of elements in the array whose absolute difference equals k.

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 Amazon questions

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