Simple Java || C++ Code ☠️
java []\nclass Solution {\n    public int maximumProduct(int[] nums) {\n        int n = nums.length;\n        Arrays.sort(nums);\n        int m1 = nums[n-1]*num
```java []\nclass Solution {\n    public int maximumProduct(int[] nums) {\n        int n = nums.length;\n        Arrays.sort(nums);\n        int m1 = nums[n-1]*nums[n-2]*nums[n-3];\n        int m2 = nums[0]*nums[1]*nums[n-1];\n        if(m1>m2){\n            return m1;\n        }\n        else{\n            return m2;\n        }\n    }\n}\n```\n```C++ []\nclass Solution {\npublic:\n    int maximumProduct(vector<int>& nums) {\n        int n = nums.size();\n        sort(nums.begin(),nums.end());\n        int m1 = nums[n-1]*nums[n-2]*nums[n-3];\n        int m2 = nums[0]*nums[1]*nums[n-1];\n        if(m1>m2){\n            return m1;\n        }\n        else{\n            return m2;\n        }\n    }\n};\n```\n
['Java']