Given an integer array nums containing distinct positive integers, find and return any number from the array that is neither the minimum nor the maximum value. If no such number exists, return
Constraints:
nums.length
nums[i]
All values in nums are distinct
Given an integer array nums containing distinct positive integers, find and return any number from the array that is neither the minimum nor the maximum value. If no such number exists, return
Constraints:
nums.length
nums[i]
All values in nums are distinct