Mini-Max Sum

  • + 0 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])