Avatar of Rodrigo Costa
Rodrigo Costa
Flag for New Zealand asked on

Permutations of numbers in columns and lines

Hi folks I'm trying to find a way to find all the possible permutations on an array of 4x4 without allowing the repetition of lines and columns. So one would get the smallest value in a column and than the next value would not take into account the first column since there was a number chosen from there already and from the line chosen and so forth.

So let's say that you have:
        1      2      3      4
A    94     1     54    68
B    74    10    88    82
C    73    88     8     76
D     1     74    81    21

Any help in giving me a way to achieve it would be much appreciated. Cheers.
JavaPythonC++

Avatar of undefined
Last Comment
Mark Bullock

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mark Bullock

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61