Rules
Paint all cells of the grid into two different colors. Numbers on the top and at the left show the maximum length of block of the cells of dark color in the corresponding row or column. Numbers at the right and in the bottom show the maximum length of blocks of the cells of light color.
Click to see the answer.