Problem 2392 · Hard

Build a Matrix With Conditions

Place each value in a row from one topological order and a column from another, so both sets of conditions hold.

Open the interactive visualisation