Problems > Same Color Squares > Editorial

Same Color Squares — Solution & Editorial

Back to the Problem

A square's color is the parity of r + c.

Complexity: O(1)