Problem 302 · Hard

Smallest Rectangle Enclosing Black Pixels

Find smallest rectangle enclosing all black pixels in binary matrix.

Open the interactive visualisation