Search⌘ K
AI Features

Third Maximum Number

Third Maximum Number asks you to find the third distinct maximum in an integer array, returning the overall maximum when fewer than three distinct values are present. Values may be negative.

Statement

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