You are viewing a single comment's thread. Return to all comments →
Solution TypeScript:
let result = 0 for(let i = 0; i< arr.length; i++){ result+= (arr[i][i] - arr[i][(arr.length - 1) - i]) } return Math.abs(result)
Seems like cookies are disabled on this browser, please enable them to open this website
Diagonal Difference
You are viewing a single comment's thread. Return to all comments →
Solution TypeScript: