You are viewing a single comment's thread. Return to all comments →
TS / JS
function diagonalDifference(arr: number[][]): number { let s =0, l= arr.length; for(let i=0;i<l;i++) s+= arr[i][i] - arr[l-1-i][i] ; return Math.abs(s); }
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 →
TS / JS