Mini-Max Sum

  • + 0 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})

    }