Interview Question

Interview Palo Alto, CA

Given an unsorted array of elements say a

  [] = {1,4,3,6,10} and a number say 7 print the pair of elements that add up to the number n this case I need to print {4,3}. Most efficient way of implementing this.

Add Answers or Comments

To comment on this, Sign In or Sign Up.