Java || Easy To Understand || nlog(n)
Code\n\nclass Solution {\n    public int maximumProduct(int[] nums) {\n        int n=nums.length;\n        Arrays.sort(nums);\n        return Math.max(nums[0]*n
# Code\n```\nclass Solution {\n    public int maximumProduct(int[] nums) {\n        int n=nums.length;\n        Arrays.sort(nums);\n        return Math.max(nums[0]*nums[1]*nums[n-1],nums[n-1]*nums[n-2]*nums[n-3]);\n        // return max_product;\n        \n    }\n}\n```
['Sorting', 'Java']