Toeplitz matrix
Return whether every diagonal of a matrix running from top-left to bottom-right holds a single repeated value, comparing each cell with the one up and to its left.
No answer yet. Write the first one; the best answer gets endorsed.
Return whether every diagonal of a matrix running from top-left to bottom-right holds a single repeated value, comparing each cell with the one up and to its left.