Problem 1128 · Easy

Number of Equivalent Domino Pairs

Count pairs of dominoes that match after rotation. Each domino is reduced to a canonical key and the pair count grows with every repeat.

Open the interactive visualisation