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