Place stars in some cells such that there are two stars in every row, column and region. Cells with stars do not touch, not even diagonally. Blacken some cells without stars such that in every region there are four connected black cells, forming a tetromino. Cells are connected if they share an edge. All black cells are connected but no 2x2 area is completely black. Equal tetrominoes do not share an edge. Mirrored or rotated tetrominoes are considered equal.
Solution code: For every row from top to bottom the number of cells between the two stars