Array
2352. Equal Row and Column Pairs
Given an n×n matrix grid, count the pairs (row_i, col_j) where row i and column j are equal as sequences (same numbers, same order). This reduces to matching rows against columns as identical vectors.
Loading…