You are viewing a single comment's thread. Return to all comments →
res = [] for idx,records in enumerate(arr): summed = 0 for idxs,records in enumerate(arr): if idx==idxs: continue else: summed+=records res.append(summed) res.sort() print(res[0],res[len(res)-1])
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 →