Problem 3699 · Hard
Count arrays by the value of their last element and whether the last step went up or down.
Open the interactive visualisation