Statement
For a given integer array nums
, your task is to return the third maximum distinct number in the array. If there are fewer than three distinct numbers, return the maximum number.
Constraints:
nums.length
nums[i]
For a given integer array nums
, your task is to return the third maximum distinct number in the array. If there are fewer than three distinct numbers, return the maximum number.
Constraints:
nums.length
nums[i]
For a given integer array nums
, your task is to return the third maximum distinct number in the array. If there are fewer than three distinct numbers, return the maximum number.
Constraints:
nums.length
nums[i]