LeetCode
Minimum Domino Rotations For Equal Row
Click
here
for an explanation.