1 liner - Python 3
Approach:\nThe list is first sorted. After sorting, 1 is subtracted from the last and the second last elements and their product is returned.\n\nclass Solution:
Approach:\nThe list is first sorted. After sorting, ```1``` is subtracted from the last and the second last elements and their **product** is returned.\n```\nclass Solution:\n    def maxProduct(self, nums: List[int]) -> int:\n        return ((sorted(nums)[-1]) - 1) * ((sorted(nums)[-2] - 1))\n```\n```\n#Runtime: 56ms\n#80%\n```
['Python3']