2733. Neither Minimum nor Maximum
Given an integer array
numscontaining distinct positive integers, find and return any number from the array that is neither the minimum nor the maximum value in the array, or-1if there is no such number.Return the selected integer.
1 | class Solution { |