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.
Only the colouring of the previous column matters, and with at most three rows there are just twelve valid column patterns to track.