Skip to content

Commit 0ff7f99

Browse files
authored
saddle-points: Fix row values in instructions (#2143)
exercism/problem-specifications#2272
1 parent fb68424 commit 0ff7f99

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

exercises/practice/saddle-points/.docs/instructions.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ Or it might have one, or even several.
1212

1313
Here is a grid that has exactly one candidate tree.
1414

15+
```text
1516
1 2 3 4
17+
|-----------
18+
1 | 9 8 7 8
19+
2 | 5 3 2 4 <--- potential tree house at row 2, column 1, for tree with height 5
20+
3 | 6 6 7 1
21+
```
1622

17-
|-----------
18-
1 | 9 8 7 8
19-
2 | 5 3 2 4 <--- potential tree house at row 2, column 1, for tree with height 5
20-
3 | 6 6 7 1
21-
22-
- Row 2 has values 5, 3, and 1. The largest value is 5.
23+
- Row 2 has values 5, 3, 2, and 4. The largest value is 5.
2324
- Column 1 has values 9, 5, and 6. The smallest value is 5.
2425

2526
So the point at `[2, 1]` (row: 2, column: 1) is a great spot for a tree house.

exercises/practice/saddle-points/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"blurb": "Detect saddle points in a matrix.",
2525
"source": "J Dalbey's Programming Practice problems",
26-
"source_url": "http://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html",
26+
"source_url": "https://users.csc.calpoly.edu/~jdalbey/103/Projects/ProgrammingPractice.html",
2727
"custom": {
2828
"version.tests.compatibility": "jest-27",
2929
"flag.tests.task-per-describe": false,

0 commit comments

Comments
 (0)