Problem 1007 · Medium

Minimum Domino Rotations For Equal Row

Find the fewest domino rotations that make one row show a single value. Two candidate values are tested and the rotations needed for each row are counted.

Open the interactive visualisation