You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers.*/
function miniMaxSum(arr) {
if (arr.length > 5) {
console.log(
`O máximo são 5 elementos. Exclua ${arr.length - 5} elementos.`