Smallest Sum Parody
Smallest Sum Parody easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Smallest Sum Parody easy Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement:
You are given an array A of size N. Find the smallest sum of any two numbers (on distinct indices) possible in the array, Input The first line of the input contains a single integer N. The second line of the input contains N space seperated integers.
Constraints: 2 <= N <= 105 1 <= Ai <= 109 Output Print the smallest sum of any two numbers (on distinct indices) possible in the array, Example Sample Input: 5 5 3 8 7 2
Sample Output: 5
link: