算法题:两列找共同元素有O(n)的算法吗?# JobHunting - 待字闺中
c*e
1 楼
Given two arrays, each with distinct integers, give an efficient
algorithm to find out the common elements.
显然我们可以对两个数列进行快速排序。但有更简单的算法吗?
algorithm to find out the common elements.
显然我们可以对两个数列进行快速排序。但有更简单的算法吗?