https://leetcode.com/problems/equal-row-and-column-pairs/


Runtime: 1162 ms, faster than 31.37% of Python3 online submissions for Equal Row and Column Pairs.

Memory Usage: 18.7 MB, less than 90.53% of Python3 online submissions for Equal Row and Column Pairs.


```python
class Solution:
    def equalPairs(self, grid: List[List[int]]) -> int:
        #8:42
        row_list = grid.copy()
        
        column_list = []
        for (index, _) in enumerate(grid[0]):
            column = [row[index] for row in grid]
            column_list.append(column)
        
        sum = 0
        for one in row_list:
            counting = column_list.count(one)
            sum += counting
        
        return sum
        #8:51
```


___


Fear won't solve the problem.

Logic mind and firmly action can.
