[HackerRank - Java] Day 1 - 2. Mini-Max Sum
Mini-Max Sum Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers. Then print the respective minimum and maximum values as a single line of two space-separated long integers. Example arr=[1,3,5,7,9]arr = [1, 3, 5, 7, 9]arr=[1,3,5,7,9] The minimum sum is 1 + 3 + 5 + 7 = 16 and the maximum sum is 3 + 5 + 7 + 9 = 24. T..
2023. 1. 27. 13:28