Problem 4052 · Easy

Cyclically Shift Rows and Columns

Rotate each row left by its shift, then rotate each column up by its shift using the already shifted rows.

Open the interactive visualisation