You are viewing a single comment's thread. Return to all comments →
def diagonalDifference(arr): # Write your code here s = 0 size = len(arr) for i in range(size): line = arr[i] diff = line[i] - line[size - 1 - i] s += diff return abs(s)
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 →