Official
C - Digital Graffiti Editorial by en_translator
We can see that a point is a vertex if and only if there are exactly one or three #
’s in the four cells surrounding the point .
Note:
If there are exactly #
’s around them, it is not possible that they are placed diagonally, since the shape does not have self-intersection. Therefore they are placed adjacently, thus the circumference of the polygon does not bend there, so it is not necessarily a vertex.
Since all the edge rows and columns consists of .
, we only have to check for each , so we don’t really have to worry about referencing out of bounds of .
posted:
last update: