LeetCode

Smallest Rectangle Enclosing Black Pixels

Click here for an explanation.