Find the required value of the given expression
for ( let i = 0 ; i < n ; i ++ ) { sum = sum + Math . pow ( Math . max ( a [ i ] - x , 0 ) , b [ i ] ) ; } if ( sum <= k ) return true ; else return false ; } function max_element ( a ) { let maxi = Number . MIN_VALUE ; for ( let i = 0 ; i < a . length ; i ++ ) { if ( a [ i ] > maxi ) { maxi = a [ i ] ; } } return maxi ; }