Bloomberg Interview Question

Write a function to find two numbers in an array whose sum is equal to a given number.

Interview Answer

Anonymous

Mar 3, 2016

that's linear search in two dimensions two nested loops with counters i, j if array[i] + array[j] == target bingo!!