JavaScript:实现给定一个数字数组,返回最大乘积数组中的 3 个数字算法
export function maxProductOfThree (arrayItems) {
// if size is less than 3, no triplet exists
const n = arrayItems.length
if (n < 3)
export function maxProductOfThree (arrayItems) {
// if size is less than 3, no triplet exists
const n = arrayItems.length
if (n < 3)