Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
Update bfs_exercise_solution.py
  • Loading branch information
nikhilailani authored Dec 24, 2020
commit 699382b9ccb6c85e5f26fe796d1a45b54fddf5ef
2 changes: 1 addition & 1 deletion algorithms/9_BreadthFirstSearch/bfs_exercise_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def bfs(data, start, end, visited=[]):
current_node = queue.pop(0)
if current_node==end:
print("Path exists!")
print("Path : " + "->".join(visited) + "->"+end)
print("Path: " + "->".join(visited) + "->" + end)
return
visited.append(current_node)

Expand Down