You are viewing a single comment's thread. Return to all comments →
here is mine
let min = Math.min.apply(null, arr), max = Math.max.apply(null, arr); let sum = arr.reduce((prev, curr) => prev + curr); console.log(sum - max, sum - min);
Seems like cookies are disabled on this browser, please enable them to open this website
Mini-Max Sum
You are viewing a single comment's thread. Return to all comments →
here is mine