1931. Painting a Grid With Three Different ColorsTimingAnalyzedynamic planingin constraints, 1<=m<=5 1<=n<=1000#