You are viewing a single comment's thread. Return to all comments →
Brute force in python
def miniMaxSum(arr): # Write your code here ssum, tsum, temp = 0, 0, [] for i in arr: ssum+= i for i in arr: tsum = ssum - i temp.append(tsum) print(min(temp), max(temp), sep=' ')
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 →
Brute force in python