---
title: "Discussion on \"2319. Check if Matrix Is X-Matrix\" | Hashnode"
description: "Discussion on \"2319. Check if Matrix Is X-Matrix\". Problem\nProblem_Link\nMy Attempt\nBrainstorming\nX-Matrix \n    All the elements in the diagonals of the matrix are non-zero.\n    All other elements are 0.\nSo, it need to have 0 in all positions.\nnum, 0,0,0,num\n0,num,0,num,0\n0,0,num,0,0\n0,num,0,num,0\nnum..."
url: "https://hashnode.com/posts/2319-check-if-matrix-is-x-matrix/62bf390dccecfb25bbc711af"
---

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

Discussion

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

Jul 1, 2022 · 3 min read · eunhanlee.hashnode.dev  
Read the article

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

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