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.