← OYO questions

Find pair to swap to make two array sums equal

Filed under OYO

Given two integer arrays, find a pair of elements (one from each array) such that swapping them results in both arrays having the same total sum. Return the pair as a list [a, b] where a is from the…

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

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