โ† Accolite questions

Find pair with sum zero or closest to zero

Filed under Accolite

Given an unsorted array containing both positive and negative integers, find a pair of elements whose sum is equal to 0. If no such pair exists, find the pair whose sum is closest to 0.

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

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