---
title: "Discussion on \"LeetCode 2319. Check if Matrix Is X-Matrix Java Solution\" | Hashnode"
description: "Discussion on \"LeetCode 2319. Check if Matrix Is X-Matrix Java Solution\". Problem Description\n\nProblem: Check if Matrix is X-Matrix\n\nDescription: 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.\n\n\nApproach\n\nIdea: To check if each e..."
url: "https://hashnode.com/posts/leetcode-2319-check-if-matrix-is-x-matrix-java-solution/6685c2e18da296f146aab020"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [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...

Jul 3, 2024 · 2 min read · eunhanlee.hashnode.dev  
Read the article

-   [#2319-check-if-matrix-is-x-matrix](https://hashnode.com/tag/2319-check-if-matrix-is-x-matrix)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#algorithm](https://hashnode.com/tag/algorithm)
-   [#java](https://hashnode.com/tag/java)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#algorithm-solving](https://hashnode.com/tag/algorithm-solving)

## Written by

[Han](https://hashnode.com/@EunHaSu)

@EunHaSu · VA, US

  
[View profile](https://hashnode.com/@EunHaSu)

Java, Android, Algorithm

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
