You are viewing a single comment's thread. Return to all comments →
I did it this way by totalling the original array and just taking away each element from the total and appending the list with the result:
tot = sum(arr) res = [] for i in arr: res.append(tot - i) print("{} {}".format(min(res), max(res)))
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 →
I did it this way by totalling the original array and just taking away each element from the total and appending the list with the result: