Skip to content

Commit 64151af

Browse files
spiral-matrix: sync (#1251)
* Sync the `spiral-matrix` exercise's docs with the latest data. * Sync the `spiral-matrix` exercise's metadata with the latest data.
1 parent edc2438 commit 64151af

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 11 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
},
2828
"blurb": "Given the size, return a square matrix of numbers in spiral order.",
2929
"source": "Reddit r/dailyprogrammer challenge #320 [Easy] Spiral Ascension.",
30-
"source_url": "https://www.reddit.com/r/dailyprogrammer/comments/6i60lr/20170619_challenge_320_easy_spiral_ascension/"
30+
"source_url": "https://web.archive.org/web/20230607064729/https://old.reddit.com/r/dailyprogrammer/comments/6i60lr/20170619_challenge_320_easy_spiral_ascension/"
3131
}

0 commit comments

Comments
 (0)