Search Your Question...!

Showing posts with label Mini-Max Sum HackerRank Solution. Show all posts
Showing posts with label Mini-Max Sum HackerRank Solution. Show all posts

Mini-Max Sum | Python Solution | HackerRank

 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

The minimum sum is  and the maximum sum is . The function prints

16     24