Skip to content

Commit 731a45b

Browse files
spiral-matrix: sync (exercism#186)
* Sync the `spiral-matrix` exercise's docs with the latest data. * Sync the `spiral-matrix` exercise's metadata with the latest data.
1 parent d38934d commit 731a45b

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

exercises/practice/spiral-matrix/.docs/instructions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Instructions
22

3-
Given the size, return a square matrix of numbers in spiral order.
3+
Your task is to return a square matrix of a given size.
44

55
The matrix should be filled with natural numbers, starting from 1 in the top-left corner, increasing in an inward, clockwise spiral order, like these examples:
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Introduction
2+
3+
In a small village near an ancient forest, there was a legend of a hidden treasure buried deep within the woods.
4+
Despite numerous attempts, no one had ever succeeded in finding it.
5+
This was about to change, however, thanks to a young explorer named Elara.
6+
She had discovered an old document containing instructions on how to locate the treasure.
7+
Using these instructions, Elara was able to draw a map that revealed the path to the treasure.
8+
9+
To her surprise, the path followed a peculiar clockwise spiral.
10+
It was no wonder no one had been able to find the treasure before!
11+
With the map in hand, Elara embarks on her journey to uncover the hidden treasure.

exercises/practice/spiral-matrix/.meta/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
},
1616
"blurb": "Given the size, return a square matrix of numbers in spiral order.",
1717
"source": "Reddit r/dailyprogrammer challenge #320 [Easy] Spiral Ascension.",
18-
"source_url": "https://www.reddit.com/r/dailyprogrammer/comments/6i60lr/20170619_challenge_320_easy_spiral_ascension/"
18+
"source_url": "https://web.archive.org/web/20230607064729/https://old.reddit.com/r/dailyprogrammer/comments/6i60lr/20170619_challenge_320_easy_spiral_ascension/"
1919
}

0 commit comments

Comments
 (0)