Output diagonal positions of me squared – codegolf.stackexchange.com

Given a number n, Output a list of indices falling on either of the diagonals of a n*n square matrix. Example: For an input of 3: The square shall be: 1 2 3 4 5 6 7 8 9 Now we select all the ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Output diagonal positions of me squared – codegolf.stackexchange.com"