Problem 737. Criss_Cross_000 : Unique elements in a Square array
Criss Cross matrix puzzle - Easy: Square matrix, Unique elements
Arrange the "words" into a solid square such that all words are used.
Given an array of row words and an array of column words make the unique Square.
There is no flipping or rotating in this simplest case.
example:
M_orig =[1 2 3; 4 5 6; 7 8 9]
Inputs:
vr = [1 2 3; 4 5 6; 7 8 9]
scramled gives vr =[7 8 9; 1 2 3; 4 5 6]
vc =[1 2 3; 4 5 6; 7 8 9]
scrambled gives vc =[3 1 2;6 4 5; 9 7 8]
Output:
M_out=[1 2 3; 4 5 6; 7 8 9]
Max size : 4096
This is the first in a series of Criss Cross puzzles.
Follow up puzzles will have non-unique values, non-identified row or col, and there are quite a few other variations.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
Back to basics 11 - Max Integer
773 Solvers
-
765 Solvers
-
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
176 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
368 Solvers
-
696 Solvers
More from this Author294
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!