Spiral Matrix — Math & Matrix

Walk a grid of tile numbers from the outer edge inward, turning as you go, and list the values in the sequence you pass them.

Math & Matrix · Medium

More in Math & Matrix

All algorithm problems