Problem 533 · Medium

Lonely Pixel II

Find black pixels with exactly N black pixels in both their row and column.

Open the interactive visualisation