Problem 2120 · Medium

Execution of All Suffix Instructions Staying in a Grid

For every instruction suffix, count moves before leaving the grid.

Open the interactive visualisation