Skip to content

Commit

Permalink
两个数组的交 py实现
Browse files Browse the repository at this point in the history
  • Loading branch information
Azureki committed May 2, 2019
1 parent 8ea1f20 commit 66d1491
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 349. Intersection of Two Arrays/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Solution:
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
return list(set(nums1) & set(nums2))

0 comments on commit 66d1491

Please sign in to comment.