You are viewing a single comment's thread. Return to all comments →
very elegant solution, mine was similar:
for (var j = n-1, k = 0; j > -1; j--, k++ ) { diagonalB += arr[k][j]; }
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 →
very elegant solution, mine was similar: