I need a way to find how many common elements in between two arrays.
Suppose that I have:
a = {1,2,3,4,5,6,7,8,9}
b = {2,4,6,8,10}
So the result would be 4.
I need it to be effective with very large array like arrays of length 1300000. I have tried the intersect method but it gave me a wrong number such as 256 or 11 and tried with method Zip but it's too slow.