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.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.