Search
⌘K

Leetcode 2319. Check if Matrix Is X-Matrix

Check whether an n x n matrix is an X-Matrix by verifying that every element on the main and anti-diagonals is non-zero while all other entries are zero.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.