MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / Solution

Class Solution

Array/IntersectionOfTwoArrays.py:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31"""
32class Solution(object):
33 def intersection(self, nums1, nums2):
34 """
35 :type nums1: List[int]
36 :type nums2: List[int]
37 :rtype: List[int]
38 """
39
40 return list(set(nums1) & set(nums2))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected