• Feed
  • Discussions
2319. Check if Matrix Is X-Matrix

2319. Check if Matrix Is X-Matrix

#2319-check-if-matrix-is-x-matrix
0 followers·2 articles

2319. Check if Matrix Is X-Matrix

#2319-check-if-matrix-is-x-matrix·0 followers·2 articles
2319. Check if Matrix Is X-Matrix
Han
Han
eunhanlee.hashnode.dev·Jul 03, 2024
Jul 03, 2024

LeetCode 2319. Check if Matrix Is X-Matrix Java Solution

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

Discuss·2 reads
2319. Check if Matrix Is X-Matrix
Han
Han
eunhanlee.hashnode.dev·Jul 01, 2022
Jul 01, 2022

2319. Check if Matrix Is X-Matrix

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

2319. Check if Matrix Is X-Matrix
Discuss·44 reads
Algorithm Solving Study
leetcode

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

Revolutionizing Decentralized Finance on TON: The Tech Behind Seamless Liquidity and Cross-Chain Swaps.

Patience Uyire·46 reads

Life2App: Redefining Engagement in the New Economy.

Patience Uyire·63 reads

Reimagining Mobile Wallets: The Future of Finance in a Decentralized Web3 World.

Patience Uyire·65 reads

Top commenters this week

Melisa Parker
Melisa Parker
Clarence
Clarence
Le Li
Le Li
Libby Reyes
Libby Reyes
Mayank Arora
Mayank Arora

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior