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.