fix(curriculum): Update description in Shortest Path Algorithm Step 20 (#64614)

This commit is contained in:
Tanish Mundra
2025-12-15 20:56:42 +05:30
committed by GitHub
parent eb82f97d03
commit 6e838b8082
@@ -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--