[Solved] Equal Row and Column Pairs LeetCode Contest Problem
Given a 0-indexed n x n integer matrix grid, return the number of pairs (Ri, Cj) such that row Ri and column Cj are equal. A row and column pair is considered equal if they contain the same elements in the same order (i.e. an equal array). Equal Row and Column…