You are viewing a single comment's thread. Return to all comments →
def flippingMatrix(matrix): return sum( max(matrix[i][j], matrix[~i][j], matrix[i][~j], matrix[~i][~j]) for i in range(len(matrix) >> 1) for j in range(len(matrix) >> 1) )
Seems like cookies are disabled on this browser, please enable them to open this website
Flipping the Matrix
You are viewing a single comment's thread. Return to all comments →