Available question text
Return the third distinct largest value in an integer array (treat duplicate values as one); if fewer than three distinct values exist, return the maximum. The challenge is to do this in O(n) time (ideally with constant extra space).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 414. Third Maximum Number
Reported Feb 26, 2025 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source