Find a pair of elements swapping which makes sum of two arrays same
Given two arrays of integers, find a pair of values (one value from each array) that you can swap to give the two arrays the same sum. Examples: Input: A[] = {4, 1, 2, 1, 1, 2}, B[] = (3, 6, 3, 3) Output: 1 3 Explanation: Sum of elements in A[] = 11 and Sum of elements in B[] = 15. To get same sum f