Problem 414 · Easy

Third Maximum Number

Find third largest distinct number (or max if fewer than 3).

Open the interactive visualisation