Interview Question

Anonymous 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.
Answer

Add Answers or Comments

To comment on this review, Sign In with Facebook or Sign Up