Problem 1914 · Medium

Cyclically Rotating a Grid

Rotate every concentric rectangular ring of a grid counterclockwise by k positions. The visual draws each ring in its own color and animates each one turning by its step count.

Open the interactive visualisation