Skip to content
Merged
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
Update Dfs_exercise.py
  • Loading branch information
beladiyadarshan authored Dec 23, 2020
commit d6acab4c1b507858d2098634513f89a85cee8a6a
4 changes: 2 additions & 2 deletions algorithms/8_depth_first_search/Dfs_exercise.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#function for depth first search
def dfs(data, start,emp,visited=set()):
def dfs(data, start,employee,visited=set()):

#if not visited print it
if start not in visited:
print(start,end=" ")

if start==emp:
if start==employee:
print(":",end=" ")


Expand Down