You are given an array containing \(2 \times n\) elements.You have to partition the numbers in to n pairs with the property that partition minimize the maximum sum of a pair.
In sample input possible partitions are ((5,6) , (9,2) , (8,3)) and pair sum for these partitons are (11,11,11) so minimum possible maximum sum is 11. Other possible pairs are ((3,2) , (9,5) , (8,6)) so here minimum possible maximum sum is 14. So 11 is minimum possible maximum sum from all possible pair of partitions.