Programming Question

Question: Given two arrays of integers, find a pair of values (one value from each array) that you can sqap to give the two arrays the same sum. Example, Input: {4, 1, 2, 1, 1, 2} and {3, 6, 3, 3} Output: {1, 3}

From: Cracking the Coding Interview [McDowell]

Subject: Moderate

Load Another Question


Select a Subject