Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
ifIf I understood what you are asking. For every, not redfor every non-red, border tile, flood red. At last the non red-red tiles are surrondedsurrounded by red.
In the example starting from top-left corner ingoing anti clock -clockwise...
if I understood what you are asking. For every, not red, border tile, flood red. At last the non red tiles are surronded by red.
In the example starting from top-left corner in anti clock ...
If I understood what you are asking, for every non-red, border tile, flood red. At last the non-red tiles are surrounded by red.
In the example starting from top-left corner going anti-clockwise...