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.