File tree 1 file changed +34
-24
lines changed 1 file changed +34
-24
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"exercise" : " saddle-points" ,
3
- "version" : " 1.0 .0" ,
3
+ "version" : " 1.1 .0" ,
4
4
"comments" : [
5
5
" Matrix rows and columns are 0-indexed."
6
6
],
11
11
" This is the README example."
12
12
],
13
13
"property" : " saddlePoints" ,
14
- "input" : [
15
- [9 , 8 , 7 ],
16
- [5 , 3 , 2 ],
17
- [6 , 6 , 7 ]
18
- ],
14
+ "input" : {
15
+ "matrix" : [
16
+ [9 , 8 , 7 ],
17
+ [5 , 3 , 2 ],
18
+ [6 , 6 , 7 ]
19
+ ]
20
+ },
19
21
"expected" : [
20
22
{
21
23
"row" : 1 ,
26
28
{
27
29
"description" : " Can identify that empty matrix has no saddle points" ,
28
30
"property" : " saddlePoints" ,
29
- "input" : [
30
- []
31
- ],
31
+ "input" : {
32
+ "matrix" : [
33
+ []
34
+ ]
35
+ },
32
36
"expected" : []
33
37
},
34
38
{
35
39
"description" : " Can identify lack of saddle points when there are none" ,
36
40
"property" : " saddlePoints" ,
37
- "input" : [
38
- [1 , 2 , 3 ],
39
- [3 , 1 , 2 ],
40
- [2 , 3 , 1 ]
41
- ],
41
+ "input" : {
42
+ "matrix" : [
43
+ [1 , 2 , 3 ],
44
+ [3 , 1 , 2 ],
45
+ [2 , 3 , 1 ]
46
+ ]
47
+ },
42
48
"expected" : []
43
49
},
44
50
{
45
51
"description" : " Can identify multiple saddle points" ,
46
52
"property" : " saddlePoints" ,
47
- "input" : [
48
- [4 , 5 , 4 ],
49
- [3 , 5 , 5 ],
50
- [1 , 5 , 4 ]
51
- ],
53
+ "input" : {
54
+ "matrix" : [
55
+ [4 , 5 , 4 ],
56
+ [3 , 5 , 5 ],
57
+ [1 , 5 , 4 ]
58
+ ]
59
+ },
52
60
"expected" : [
53
61
{
54
62
"row" : 0 ,
71
79
" off-by-one errors."
72
80
],
73
81
"property" : " saddlePoints" ,
74
- "input" : [
75
- [8 , 7 , 9 ],
76
- [6 , 7 , 6 ],
77
- [3 , 2 , 5 ]
78
- ],
82
+ "input" : {
83
+ "matrix" : [
84
+ [8 , 7 , 9 ],
85
+ [6 , 7 , 6 ],
86
+ [3 , 2 , 5 ]
87
+ ]
88
+ },
79
89
"expected" : [
80
90
{
81
91
"row" : 2 ,
You can’t perform that action at this time.
0 commit comments