Mini-Max Sum

  • + 0 comments
    def miniMaxSum(arr):
        sortedarr = sorted(arr)
        print(sum(sortedarr[:4]), sum(sortedarr[1:]))