Search⌘ K
AI Features

Third Maximum Number

Third Maximum Number asks you to find the third distinct maximum in an integer array, or return the maximum when fewer than three distinct values exist. Negative values are allowed.

Statement

Given an integer array, nums, determine and return the third distinct maximum element in the ...