Given a grid, return the total number of pairs
A row and column pair is considered equal if they contain the same elements in the exact same order.
Constraints:
n = grid.length = grid[i].length
n
grid[i][j]
Given a grid, return the total number of pairs
A row and column pair is considered equal if they contain the same elements in the exact same order.
Constraints:
n = grid.length = grid[i].length
n
grid[i][j]