Skip to content

Fixes #12192 #12294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed
  • Loading branch information
VarshiniShreeV committed Oct 27, 2024
commit 12dde2f9e6acd6747dbd28027a115aedfe5c08c6
2 changes: 1 addition & 1 deletion sorts/topological_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
if neighbor not in visited:
sort = topological_sort(neighbor, visited, sort)

# After visiting all neigbors, add the current node to the sorted list
# After visiting all neighbors, add the current node to the sorted list
sort.append(current)

# If there are some nodes that were not visited (disconnected components)
Expand All @@ -47,5 +47,5 @@
sort = topological_sort("a", [], [])

# Reversing the list to get the correct topological order (Top down approach)
sort.reverse()

Check failure on line 50 in sorts/topological_sort.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (W291)

sorts/topological_sort.py:50:19: W291 Trailing whitespace

Expand Down
Loading