Problems > Maximum of Three > Editorial

Maximum of Three — Solution & Editorial

Back to the Problem

Two comparisons suffice: max(A, max(B, C)).

Complexity: O(1)