You are viewing a single comment's thread. Return to all comments →
log(n) in Python:
def miniMaxSum(arr): # Write your code here max_element = max(arr) min_element = min(arr) total = sum(arr) print(total-max_element,total-min_element)
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 →
log(n) in Python: