Skip to content

Commit bfa4a05

Browse files
committed
Fix result hint in the code sandbox for exercise '22.1 Pathfinding'.
1 parent cca82cf commit bfa4a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/chapter_info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ output.push({
136136
file: "code/solutions/22_1_pathfinding.js",
137137
number: 1,
138138
type: "js",
139-
code: "function findPath(a, b) {\n // Your code here...\n}\n\nvar graph = treeGraph(4, 4);\nvar root = graph[0], leaf = graph[graph.length - 1];\nconsole.log(findPath(root, leaf).length);\n// → 3\n\nleaf.connect(root);\nconsole.log(findPath(root, leaf).length);\n// → 1\n",
139+
code: "function findPath(a, b) {\n // Your code here...\n}\n\nvar graph = treeGraph(4, 4);\nvar root = graph[0], leaf = graph[graph.length - 1];\nconsole.log(findPath(root, leaf).length);\n// → 4\n\nleaf.connect(root);\nconsole.log(findPath(root, leaf).length);\n// → 2\n",
140140
solution: fs.readFileSync("code/solutions/22_1_pathfinding.js", "utf8")
141141
},
142142
{name: "Timing",

0 commit comments

Comments
 (0)