[C++]| 0 ms| Faster than 100% | Speedy solution
```\nint maxProduct(vector& nums) {\n        int max1=-1,max2=-1;\n        for(auto i: nums){\n        auto temp = max(i , min(max1,max2));\n        max2 = max(
```\nint maxProduct(vector<int>& nums) {\n        int max1=-1,max2=-1;\n        for(auto i: nums){\n        auto temp = max(i , min(max1,max2));\n        max2 = max(max1,max2);\n        max1=temp;\n        }\n      return (max1-1)*(max2-1);\n    }
['C', 'C++']