🚩 1-liner ^^
\n\n\ndef maximumSetSize(self, x, y):\n\treturn min(len(set(x+y)), min(len(set(x)), len(x)//2) + min(len(set(y)), len(y)//2))\n
![image](https://assets.leetcode.com/users/images/33f7e35d-866d-4387-8627-b945983d8e9e_1708448278.3846433.png)\n\n```\ndef maximumSetSize(self, x, y):\n\treturn min(len(set(x+y)), min(len(set(x)), len(x)//2) + min(len(set(y)), len(y)//2))\n```
['Python', 'Python3']