Problem 3034 · Medium
Compare each adjacent pair in a window with the pattern: 1 means up, 0 means equal, -1 means down.
Open the interactive visualisation