You are viewing a single comment's thread. Return to all comments →
function miniMaxSum(arr) { let sum=0 let min =arr[0]; let max =arr[0]; for(let i= 0; i max){ max= arr[i] } } for(let i=0; i{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 →
function miniMaxSum(arr) { let sum=0 let min =arr[0]; let max =arr[0]; for(let i= 0; i max){ max= arr[i] } } for(let i=0; i{sum - min})
}