Python O(n)
\n    def maxProduct(self, nums: List[int]) -> int:\n        \n        max1, max2 = -1, -1\n        for n in nums:\n            if n >= max1:\n                m
```\n    def maxProduct(self, nums: List[int]) -> int:\n        \n        max1, max2 = -1, -1\n        for n in nums:\n            if n >= max1:\n                max1, max2 = n, max1\n            elif n > max2:\n                max2 = n\n                \n            \n        return (max1-1) * (max2-1)\n```
['Python']