Update spiral_matrix.py

This commit is contained in:
Zafir Stojanovski 2025-10-06 12:31:50 +02:00 committed by GitHub
parent bcc68c5fee
commit 578ba55d2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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