← OYO questions
CodingReported in a candidate post, Nov 2020

Swap elements to make array sums equal

Filed under OYO · Also reported at Numerify

Given two integer arrays A and B, find a pair of values (one from A and one from B) that can be swapped so that the sum of elements in A equals the sum of elements in B. Return the pair [valA, valB]…

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.