I saw a interview question as follows: Give an unsorted array of integers A and and an integer I, find out if any two members of A add up to I.
any clues?
ti
for each ele in the array if (sum - ele) is hashed and hashed value is not equal to index of ele print ele, sum-ele end-if Hash ele as key and index as value end-for