Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12dde2f

Browse files
committedOct 27, 2024·
Fixed
1 parent 3d3d5aa commit 12dde2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎sorts/topological_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def topological_sort(start: str, visited: list[str], sort: list[str]) -> list[st
3030
if neighbor not in visited:
3131
sort = topological_sort(neighbor, visited, sort)
3232

33-
# After visiting all neigbors, add the current node to the sorted list
33+
# After visiting all neighbors, add the current node to the sorted list
3434
sort.append(current)
3535

3636
# If there are some nodes that were not visited (disconnected components)

0 commit comments

Comments
 (0)
Please sign in to comment.