Given an integer array, find three numbers whose product is maximum and output the maximum product.
1 比较最大的三个数的乘积和最小两个数乘以最大那个数的乘积
2 使用heapq.nlargest(n, nums)和heapq.nsmallest(n, nums)
Given an integer array, find three numbers whose product is maximum and output the maximum product.
1 比较最大的三个数的乘积和最小两个数乘以最大那个数的乘积
2 使用heapq.nlargest(n, nums)和heapq.nsmallest(n, nums)