Problem 1465 · Medium

Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Find the largest rectangular piece of cake left after horizontal and vertical cuts. The visual draws the grid lines and highlights the largest gap in each direction.

Open the interactive visualisation