349._intersection_of_two_arrays.md 417 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
### 349. Intersection of Two Arrays

题目:
<https://leetcode.com/problems/intersection-of-two-arrays/>


难度:

Easy



Python一句话作弊

```python
K
KEQI HUANG 已提交
16 17 18 19 20 21 22
class Solution(object):
    def intersection(self, nums1, nums2):
        """
        :type nums1: List[int]
        :type nums2: List[int]
        :rtype: List[int]
        """
23 24 25
        return list(set(nums1).intersection(nums2))
```