• + 0 comments

    def miniMaxSum(arr): # Write your code here arr.sort() min_sum = 0 max_sum = 0 n = len(arr)-1 for i in range(n+1): if i 0: max_sum += arr[i] print(min_sum, max_sum)