top of page
What is the problem asking us to do?

 

If we take a look at the examples, we can see that the matrix is somewhat counting from the center of the matrix towards all the adjacent. For example, in the following matrix (n=5) it starts with a zero in the middle:

What about the HINT?

 

You should have noticed that when you matrix multiply a nx1 matrix of all 1's by a 1xn matrix filled with various values, it gives you a nxn matrix with n rows exactly as the 1xn matrix. For Example:

Then, no matter which way we move toward (i.e. up, down, left or right), it has a one (1) and then a two (2) and so on.

 

Both, the vertical and the horizontal central vectors go from aproximately -n/2 to n/2.

Powered by Johns Hopkins University and Purdue University - ROCkETEd

  • Facebook Classic
  • Twitter Classic
  • Google Classic
  • RSS Classic
bottom of page