mirror of
https://github.com/open-thought/reasoning-gym.git
synced 2026-04-19 12:58:07 +00:00
Update spiral_matrix.py
This commit is contained in:
parent
bcc68c5fee
commit
578ba55d2f
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ The spiral order is clockwise, starting from the top-left corner. More precisely
|
|||
- Start from the top-left corner and move right.
|
||||
- Move down towards the bottom-right corner.
|
||||
- Move left towards the bottom-left corner.
|
||||
- Move up towards the top-right corner.
|
||||
- Move up towards the top-left corner.
|
||||
- Repeat the steps for the inner elements of the matrix until every entry is visited.
|
||||
|
||||
Your output should be a space-separated list of integers, e.g. 1 2 3 4 5 6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue