What Is The Fastest Way Of Getting Intersection Of Two Arrays

You may find this useful

http://stackoverflow.com/questions/13270491/best-way-to-find-an-intersection-between-two-arrays

have a look.

1 Like

You can simply use merge algorithm of merge sort. You can read this for more clarification:

Note: It assumes that arrays are sorted.