【Leetcode】349. Intersection of Two Arrays

class Solution1(object): def intersection(self, nums1, nums2): """ use set intersection """ return list(set(nums1).intersection(set(nums2))) class Solution2(object): def inter
相關文章
相關標籤/搜索