You are viewing a single comment's thread. Return to all comments →
python3
def diagonalDifference(arr): return abs(sum(arr[i][i] for i in range(n)) - sum(arr[i][-i-1] for i in range(n)))
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 →
python3