Mini-Max Sum

  • + 0 comments

    My Solution:

    1. def miniMaxSum(arr):

    2. a = sorted(arr)
      
    3. b = a.copy()
      
    4. b.pop(0)
      
    5. a.pop()
      
      1. print(sum(a),sum(b))