Engaged Employer
Find 2 elements in a array that have sum n
Anonymous
Added all elements into a Set, iterated them and for every element x I searched for (n - x) in the set. Complexity N, they seem to liked to solution
Check out your Company Bowl for anonymous work chats.