Problem 3699 · Hard

Number of ZigZag Arrays I

Count arrays by the value of their last element and whether the last step went up or down.

Open the interactive visualisation