mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): Update description in Shortest Path Algorithm Step 20 (#64614)
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ Once the algorithm has finished running, you need to decide which node(s) to dis
|
||||
|
||||
If a specific `target_node` was provided, you'll only show the distance and path to that node. Otherwise, you'll show results for all nodes.
|
||||
|
||||
After the outer `for _ in range(n):` loop ends, create a variable named `targets`. Use a conditional expression to assign it `[target_node]` if `target_node` is not `None`, otherwise assign it `list(range(n))`.
|
||||
After the outer `for _ in range(n):` loop ends, create a variable named `targets`. Use a conditional expression to assign it `[target_node]` if `target_node` is not `None`, otherwise assign it `range(n)`.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user