You are viewing a single comment's thread. Return to all comments →
simple yet powerfull
def miniMaxSum(arr): mini = sum(arr)-max(arr) maxi = sum(arr)-min(arr) print(mini, maxi)
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 →
simple yet powerfull