Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding
Ninjas X Naukri.com

Problem of the day

You are given a square matrix, return true if the matrix is symmetric otherwise return false.

A symmetric matrix is that matrix whose transpose is equal to the matrix itself.

Example of symmetric matrix :

Detailed explanation

```
1 <= T <= 10
1 <= N <= 10^2
-10^9 <= data <= 10^9
Where 'data' denotes the element in the given 'matrix'.
Time Limit: 1 sec
```

```
1
3
1 2 3 2 4 5 3 5 8
```

```
Yes
```

```
1
3
1 2 3 1 4 5 3 5 8
```

```
No
```