You are viewing a single comment's thread. Return to all comments →
pyton 3
def diagonalDifference(arr): t = 0 s = len(arr) for i in range(s): t = t + arr[i][i] - arr[s-i-1][i] return abs(t)
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 →
pyton 3