Skip to content

Instantly share code, notes, and snippets.

@devCharles
Created May 9, 2019 08:26
Show Gist options
  • Save devCharles/05aaee5872c562ddfb910386efb7a8ec to your computer and use it in GitHub Desktop.
Save devCharles/05aaee5872c562ddfb910386efb7a8ec to your computer and use it in GitHub Desktop.
Calcular la diferencia de la suma de las diagonales de una matriz cuadrada
const matrix = [
[1, 2, -1],
[6, 5, 4],
[-9, 8, 9]
]
function getDiagonalsDifference (matrix) {
// complete function
}
getDiagonalsDifference(matrix)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment