Wednesday, March 15, 2006

Find a sum in an array

Given an array of integers and a single integer, X. Determine if two integers in the array sum to make X.

Provide a variety of solutions focusing on possible optimal aspects: time complexity, space complexity, in place, closest pair, etc.

No comments: