Problem 3073 · Medium

Maximum Increasing Triplet Value

Pick a middle value, take the best smaller value on its left and the best larger value on its right, then score the triplet.

Open the interactive visualisation