You are viewing a single comment's thread. Return to all comments →
Javascript
return Math.abs(arr.reduce((sum, array, index) => sum + array[index] - array[array.length - 1 - index], 0 ))
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 →
Javascript