Problem 1886 · Easy

Determine Whether Matrix Can Be Obtained By Rotation

Decide whether rotating a square grid in quarter turns can make it equal the target grid. The visual rotates the matrix one quarter turn at a time and checks it cell by cell against the target.

Open the interactive visualisation