Given an integer array nums of length n and an integer k, determine the maximum possible sum of a pair of elements nums[i] and nums[j] such that
Return the maximum pair sum that satisfies the condition.
Constraints:
n nums.length
nums[i]
k n
Given an integer array nums of length n and an integer k, determine the maximum possible sum of a pair of elements nums[i] and nums[j] such that
Return the maximum pair sum that satisfies the condition.
Constraints:
n nums.length
nums[i]
k n