Problem 1550 · Easy

Three Consecutive Odds

Decide whether three neighbouring values are all odd by scanning a sliding window of length three. The visual slides the window along the array.

Open the interactive visualisation