โ† Amazon questions

Pair sum count

Filed under Amazon

Given an integer array, count the number of pairs (i, j) with i != j such that arr[i] + arr[j] is also present in the array.

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.