---
title: "Discussion on \"Given a matrix of dimensions n x n having elements 1 to n*n distinct elements, check whether the matrix is magic square or not.\" | Hashnode"
description: "Discussion on \"Given a matrix of dimensions n x n having elements 1 to n*n distinct elements, check whether the matrix is magic square or not.\". Given a matrix of dimensions n x n having elements 1 to n*n distinct elements, check whether the matrix is magic square or not."
url: "https://hashnode.com/posts/given-a-matrix-of-dimensions-n-x-n-having-elements-1-to-nn-distinct-elements-check-whether-the-matrix-is-magic-square-or-not/64b868ce51bc9d2020fcc80a"
---

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

Discussion

# [Given a matrix of dimensions n x n having elements 1 to n\*n distinct elements, check whether the matrix is magic square or not.](https://rutuzwrld.dev/given-a-matrix-of-dimensions-n-x-n-having-elements-1-to-nn-distinct-elements-check-whether-the-matrix-is-magic-square-or-not?utm_source=hashnode&utm_medium=feed)

Given a matrix of dimensions n x n having elements 1 to n\*n distinct elements, check whether the matrix is magic square or not.

Jul 19, 2023 · 3 min read · rutuzwrld.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#java](https://hashnode.com/tag/java)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#arrays](https://hashnode.com/tag/arrays)
-   [#crio](https://hashnode.com/tag/crio)

## Written by

[Rutuj Mirzapure](https://hashnode.com/@codecobain)

@codecobain

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
