A better description for this problem can be found at http://joonprogramming.blogspot.com/2016/04/google-code-jam-qualification-round-1a_17.html We have to find an NXN matrix, without repeating numbers at any row or column that must be ordered. And we have 2*N-1 strips of scrambled numbers, which can be rows or columns. The problem is to find what the missing strip is (notice that a NXN matrix has 2*N strips).
819 Solvers
192 Solvers
Remove the two elements next to NaN value
411 Solvers
Make a run-length companion vector
512 Solvers
171 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!