You are viewing a single comment's thread. Return to all comments →
for i in range(numrows): if(i < numcols): left_score += arr[i][i] right_score += arr[i][(numcols - 1) - (i)] total_dif = abs(left_score - right_score) print(left_score, right_score ) return total_dif
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 →