• + 0 comments

    store the greatest number and the smallest number in two seperate variables get the sum of all the elements of the array...once subtract the max element to get the minimum element sum, once the min element to get the maximum element sum and this way u'll have the solution