Find Common elements from two same sized Integer Arrays(Unsorted) in O(n) without sorting either of them.
Anonymous
Hash 1 Array 1 Look up for each element in Array 2 Append to common element array if found. O(N)
Check out your Company Bowl for anonymous work chats.