there is N X N matrix and each of cell has a number on it from 0 to 9. i want to choose N numbers among them. two conditions should be satisfied.
— you can choose at most 1 number from each row.
— you can choose at most 1 number from each column.
(here , N<=50.)
can i get some advices for this problem?