Problem 2943 · Medium

Maximize Area of Square Hole in Grid

The largest square hole is limited by the shorter of the longest removable horizontal run and vertical run.

Open the interactive visualisation