[Python] Set difference
Explanation\n\nCalculate the set difference.\n\nTime O(n)\nSpace O(n)\n\n\n\nPython\npy\n    def findDifference(self, nums1, nums2):\n        s1, s2 = set(nums1
# **Explanation**\n\nCalculate the set difference.\n\nTime `O(n)`\nSpace `O(n)`\n<br>\n\n\n**Python**\n```py\n    def findDifference(self, nums1, nums2):\n        s1, s2 = set(nums1), set(nums2)\n        return [list(s1 - s2), list(s2 - s1)]\n```\n
[]