Priority Grid: Minimize the Maximum Value
You are curating a priority board. Each square of an `m x n` grid contains an original priority. Replace every priority with a positive integer rank, producing a new grid of the same shape.
You are curating a priority board. Each square of an `m x n` grid contains an original priority. Replace every priority with a positive integer rank, producing a new grid of the same shape.