[UVA] 12036 - Stable Grid
Stable Grid
Consider a grid of size n x n where each cell contains a number. Let's call a grid stable if we can
rearrange the numbers of each row so that every column of the resulting grid has no repeated values.
Mathematically, say, we have a grid G of...