349. Intersection of Two Arrays

349. Intersection of Two Arrays

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

难度:

Easy

Python一句话作弊

class Solution(object):
    def intersection(self, nums1, nums2):
        """
        :type nums1: List[int]
        :type nums2: List[int]
        :rtype: List[int]
        """
        return list(set(nums1).intersection(nums2))
    原文作者:oo上海
    原文地址: https://www.jianshu.com/p/e645225e9794
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞