American Express - matching pattern of a NxN matrix

given a N x N matrix, check if the pattern if the nxn matrix matches the pattern of the target matrix.
N =4
given matrix
12 4 5 18
96 8 0 14
99 12 7 26
20 2 86 8
see if the other matrix matches its pattern. how would you go about solving this?

Comments (1)