HF RL Explorer

Outward Spiral Iterator on 2D Grid

Outward Spiral Iterator on 2D Grid: a task in Terminal-Lego-15k (Harbor dataset). Implement a program that generates coordinates for an outward spiral pattern on a discrete 2D grid, starting from the origin (0, 0).

The task

Implement a program that generates coordinates for an outward spiral pattern on a discrete 2D grid, starting from the origin (0, 0).

Part of PrimeIntellect/Terminal-Lego-15k.