Constructing a Matrix from Row and Column Maximums
Given integers (N, M), a sequence of (N) integers (X = (X_1, X_2, \dots, X_N)), and a sequence of (M) integers (Y = (Y_1, Y_2, \dots, Y_M)). The task is to determine whether there exists an (N \times M) integer matrix (A) with entries between 1 and (N \times M) inclusive such that all entries are distinct, the maximum in row (i) equals (X_i), a ...
Posted on Sun, 01 Nov 2026 16:35:31 +0000 by T_Hayden