Problem 1931 · Hard

Painting a Grid With Three Different Colors

Only the colouring of the previous column matters, and with at most three rows there are just twelve valid column patterns to track.

Open the interactive visualisation