You are viewing a single comment's thread. Return to all comments →
In scala maximum test cases are not passing.
def miniMaxSum(arr: Array[Int]) { // Write your code here var total: Long = arr.sum var minEle = arr.min var maxEle = arr.max var minSum: Long = total - maxEle var maxSum: Long = total - minEle print(minSum+" "+maxSum) } }
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 →
In scala maximum test cases are not passing.