You are viewing a single comment's thread. Return to all comments →
My Solution:
def miniMaxSum(arr):
a = sorted(arr)
b = a.copy()
b.pop(0)
a.pop()
print(sum(a),sum(b))
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 →
My Solution: