# -*- coding: utf-8 -*-


class Solution:
    def intersection(self, nums1, nums2):
        return list(set(nums1) & set(nums2))


if __name__ == "__main__":
    solution = Solution()

    assert [2] == solution.intersection([1, 2, 2, 1], [2, 2])

416eb0057e052d049c1688da9f686a1a241f563d
<mask token>

class Solution:
    <mask token>


<mask token>

class Solution:

    def intersection(self, nums1, nums2):
        return list(set(nums1) & set(nums2))


<mask token>

class Solution:

    def intersection(self, nums1, nums2):
        return list(set(nums1) & set(nums2))


if __name__ == '__main__':
    solution = Solution()
    assert [2] == solution.intersection([1, 2, 2, 1], [2, 2])

# -*- coding: utf-8 -*-


class Solution:
    def intersection(self, nums1, nums2):
        return list(set(nums1) & set(nums2))


if __name__ == "__main__":
    solution = Solution()

    assert [2] == solution.intersection([1, 2, 2, 1], [2, 2])
