You are given an integer array nums and an integer p. You need to select p pairs of indices such that no index is used in more than one pair.
The difference between a pair of elements at indices i and j is defined as nums[i] nums[j]
Return the minimum possible maximum difference among all p pairs. If p is equal to
Constraints:
nums.length
nums[i]
p nums.length
You are given an integer array nums and an integer p. You need to select p pairs of indices such that no index is used in more than one pair.
The difference between a pair of elements at indices i and j is defined as nums[i] nums[j]
Return the minimum possible maximum difference among all p pairs. If p is equal to
Constraints:
nums.length
nums[i]
p nums.length