Problems > Strictly in the Middle > Editorial

Strictly in the Middle — Solution & Editorial

Back to the Problem

Find min and max, then count values in the open interval.

Complexity: O(N)