Python 4-line beats 99.42%
\nclass Solution(object):\n    def subsetsWithDup(self, nums):\n        result = [[]]\n        for num in sorted(nums):\n            result += [i+[num] for i in
```\nclass Solution(object):\n    def subsetsWithDup(self, nums):\n        result = [[]]\n        for num in sorted(nums):\n            result += [i+[num] for i in result if i+[num] not in result]\n        return result\n```
['Python']