Archive / 2024 / February 2024
Sum Game 4
You’re given four numbers. Write the maximum sum that can be obtained using the summation of only two numbers out of the given four.
Input Format
- four space seperated integers
Output Format
- single integer, maximum possible sum
Constraints
- each integer is between \(1\) and \(100\)
Sample Input 0
1 3 2 4
Sample Output 0
7
Open on HackerRank ↗ · Markdown source · Back to the archive