Problem 2352 · Medium

Equal Row and Column Pairs

Count row and column pairs that match exactly by storing each column as a key and looking up each row.

Open the interactive visualisation