0
Euler characteristic of a binary array
code-golf topology geometry array binary-matrix
A 2d binary array represents a shape in the plane. 1 means a square at that position. 0 means nothing. The background is 0.
For example, the array [[0,1,0],[0,0,1],[1,1,1]] represents the following shape:
...