-
-
Notifications
You must be signed in to change notification settings - Fork 550
/
Copy pathcanonical-data.json
77 lines (77 loc) · 1.6 KB
/
canonical-data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"exercise": "spiral-matrix",
"cases": [
{
"uuid": "8f584201-b446-4bc9-b132-811c8edd9040",
"description": "empty spiral",
"property": "spiralMatrix",
"input": {
"size": 0
},
"expected": []
},
{
"uuid": "e40ae5f3-e2c9-4639-8116-8a119d632ab2",
"description": "trivial spiral",
"property": "spiralMatrix",
"input": {
"size": 1
},
"expected": [[1]]
},
{
"uuid": "cf05e42d-eb78-4098-a36e-cdaf0991bc48",
"description": "spiral of size 2",
"property": "spiralMatrix",
"input": {
"size": 2
},
"expected": [
[1, 2],
[4, 3]
]
},
{
"uuid": "1c475667-c896-4c23-82e2-e033929de939",
"description": "spiral of size 3",
"property": "spiralMatrix",
"input": {
"size": 3
},
"expected": [
[1, 2, 3],
[8, 9, 4],
[7, 6, 5]
]
},
{
"uuid": "05ccbc48-d891-44f5-9137-f4ce462a759d",
"description": "spiral of size 4",
"property": "spiralMatrix",
"input": {
"size": 4
},
"expected": [
[1, 2, 3, 4],
[12, 13, 14, 5],
[11, 16, 15, 6],
[10, 9, 8, 7]
]
},
{
"uuid": "f4d2165b-1738-4e0c-bed0-c459045ae50d",
"description": "spiral of size 5",
"property": "spiralMatrix",
"input": {
"size": 5
},
"expected": [
[1, 2, 3, 4, 5],
[16, 17, 18, 19, 6],
[15, 24, 25, 20, 7],
[14, 23, 22, 21, 8],
[13, 12, 11, 10, 9]
]
}
]
}