Third Maximum Number Problem
Third Maximum Number Problem — ExecCode Easy DSA Practice
Solve the Third Maximum Number problem on ExecCode. Free online easy DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Third Maximum Number: Track top-3 distinct. For Third Maximum Number, focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.
Examples
Input nums = [3, 2, 1]; Output 1
Constraints
1 ≤ n ≤ 10^5 Values fit in 32-bit ints
Practice Third Maximum Number free on ExecCode. Browse DSA problems, topic map, and placement guides.