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
- Host: GitHub
- URL: https://github.com/letsdeepchat/diagonal-difference
- Owner: letsdeepchat
- Created: 2021-11-07T16:03:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-07T16:05:34.000Z (over 4 years ago)
- Last Synced: 2025-02-12T15:41:43.846Z (about 1 year ago)
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files: