Problem 2110 · Medium

Number of Smooth Descent Periods of a Stock

Count periods where each price is exactly one lower than the previous price.

Open the interactive visualisation