An open API service indexing awesome lists of open source software.

https://github.com/letsdeepchat/diagonal-difference

Diagonal Difference Given 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 =1+5+9=15 . The right to left diagonal = 3+5+9 = 17. Their absolute difference is |15-17| = 2. Problem description
https://github.com/letsdeepchat/diagonal-difference

Last synced: 12 months ago
JSON representation

Diagonal Difference Given 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 =1+5+9=15 . The right to left diagonal = 3+5+9 = 17. Their absolute difference is |15-17| = 2. Problem description

Awesome Lists containing this project