Problem 1253 · Medium

Reconstruct a 2-Row Binary Matrix

Forced columns fill both rows first; each remaining single column goes to whichever row still needs ones.

Open the interactive visualisation