Unique Placement of Named Entities on a Grid with Relational Constraints
Asked at MathWorks · Coding Questions · Difficulty: Hard · Last asked Jul 15, 2026
You are given a rectangular grid with **R rows** and **C columns**. A set of **named entities** (e.g., people) must each occupy **exactly one** grid cell, and no two entities may occupy the same cell.
Loading the problem…