Array
1886. Determine Whether Matrix Can Be Obtained By Rotation
Two n×n matrices mat and target. Decide whether rotating mat by 0, 90, 180, or 270 degrees can produce target. There are only four orientations, so rotate mat by 90° up to three times and compare…
Loading…