Problem 3394 · Medium

Check if Grid can be Cut into Sections

Two parallel cuts work when the rectangles fall into three separate groups along one axis, found by merging overlapping spans.

Open the interactive visualisation