You are viewing a single comment's thread. Return to all comments →
Python 3:
def miniMaxSum(arr): # Write your code here`` min_arr=sorted(arr) max_arr=sorted(arr,reverse=True) min_arr.pop() max_arr.pop() print(sum(min_arr),end=" ") print(sum(max_arr))
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 →
Python 3: