We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f133ae1 commit f8dc063Copy full SHA for f8dc063
src/python/busca_em_grafo.py
@@ -83,7 +83,7 @@ def dfs(self, start: int) -> list:
83
if u not in visitados:
84
visitados.append(u)
85
86
- for v in self.adj[u]:
+ for v in self.adj[u][::-1]:
87
if v not in visitados:
88
pilha.append(v)
89
0 commit comments