Find intersection of two unsorted arrays?
Anonymous
Two ways. Sort both arrays. Use pointers to traverse both the arrays from start and print any matching elements. Or Use Hashmap storing the array element and its count value from first array.
Check out your Company Bowl for anonymous work chats.