Remove an extraneous pass statement
This commit is contained in:
@@ -19,7 +19,6 @@ def depth_first_search(graph: dict, start, visited=set()):
|
|||||||
if x not in visited:
|
if x not in visited:
|
||||||
visited.add(x)
|
visited.add(x)
|
||||||
return depth_first_search(graph, x, visited)
|
return depth_first_search(graph, x, visited)
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
depth_first_search(first_graph, 1)
|
depth_first_search(first_graph, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user