---
title: "#2319-check-if-matrix-is-x-matrix articles | Hashnode"
description: "Explore 2 articles tagged #2319-check-if-matrix-is-x-matrix on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/2319-check-if-matrix-is-x-matrix"
---

Tag

# #2319-check-if-matrix-is-x-matrix

2 posts · 0 followers

[Han](https://hashnode.com/@EunHaSu) · [Jul 3, 2024](https://hashnode.com/posts/leetcode-2319-check-if-matrix-is-x-matrix-java-solution/6685c2e18da296f146aab020)

### [LeetCode 2319. Check if Matrix Is X-Matrix Java Solution](https://eunhanlee.hashnode.dev/leetcode-2319-check-if-matrix-is-x-matrix-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: Check if Matrix is X-Matrix Description: Determine if a given square matrix is an X-matrix. An X-matrix has all elements zero except those on the main diagonal and the anti-diagonal. Approach Idea: To check if each e...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-2319-check-if-matrix-is-x-matrix-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 1, 2022](https://hashnode.com/posts/2319-check-if-matrix-is-x-matrix/62bf390dccecfb25bbc711af)

### [2319\. Check if Matrix Is X-Matrix](https://eunhanlee.hashnode.dev/2319-check-if-matrix-is-x-matrix?utm_source=hashnode&utm_medium=feed)

Problem Problem\_Link My Attempt Brainstorming X-Matrix All the elements in the diagonals of the matrix are non-zero. All other elements are 0. So, it need to have 0 in all positions. num, 0,0,0,num 0,num,0,num,0 0,0,num,0,0 0,num,0,num,0 num...

3 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/2319-check-if-matrix-is-x-matrix?utm_source=hashnode&utm_medium=feed)
