📜  两个向量的交集 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:27.702000             🧑  作者: Mango

代码示例1
You need to sort just the smaller vector. 
Then do a single pass over the bigger vector and test a presence 
of its items in a smaller vector by using a binary search.

(works in distinct elements of array)