LeetCode - The World's Leading Online Programming Learning Platform
from typing import List
class Solution:
def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
set_1, set_2 = set(nums1), set(nums2)
return list(set_1.intersection(set_2))
파이썬 알고리즘 인터뷰 67번