Search Your Question...!

Showing posts with label Diagonal Difference HackerRank Solution. Show all posts
Showing posts with label Diagonal Difference HackerRank Solution. Show all posts

Diagonal Difference | Python Solution | HackerRank

 iven a square matrix, calculate the absolute difference between the sums of its diagonals.

For example, the square matrix  is shown below:

1 2 3
4 5 6
9 8 9  

The left-to-right diagonal = . The right to left diagonal = . Their absolute difference is .