Non-overlapping Matrix Sum
Given k m by n matricesk arrays of length n, output the maximum sum possible using one element from each matrix such that no two elements are from the same position. It is guaranteed that k<=mnk<=n.
Input
ExA nonempty list of nonempty arrays of integers.
Output
An integer that represents the maximum sum.
Examples
1Input 2-> Output
[[1]] 1-> 21
[[1, 3], [1, 3]] -> 4
3[[1, 4, 32], 4[5, 6, 1]] ->7(3+4> 9
[[-2, can’t-21],[18, choose2]] the-> 0
[[1, 2, fours3], in[4, the5, same6], place)[7, 8, 9]] -> 15
[[1, 2, 3, 4], [5, 4, 3, 2], [6, 2, 7, 1]] -> 16
Is the challenge clear? More test cases and formatting to be added when I’m not on phone