Skip to content

Commit 08708d4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 2efd1f4 commit 08708d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: sorts/topological_sort.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def topological_sort(start: str, visited: list[str], sort: list[str]) -> list[st
2121
# add current to visited
2222
visited.append(current)
2323
neighbors = edges[current]
24-
#traversal from top to down in tree like graph (direction not given) we consider direction from top to down
25-
#current node encounter add it to the topo sort list
24+
# traversal from top to down in tree like graph (direction not given) we consider direction from top to down
25+
# current node encounter add it to the topo sort list
2626
sort.append(current)
2727

2828
for neighbor in neighbors:

0 commit comments

Comments
 (0)