Skip to content

Commit 47ac03e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aaef0d6 commit 47ac03e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backtracking/hamiltonian_cycle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def hamilton_cycle(graph: list[list[int]], start_index: int = 0) -> list[int]:
175175
# evaluate and if we find answer return path either return empty array
176176
return path if util_hamilton_cycle(graph, path, 1) else []
177177

178+
178179
if __name__ == "__main__":
179180
import doctest
180181

@@ -186,4 +187,4 @@ def hamilton_cycle(graph: list[list[int]], start_index: int = 0) -> list[int]:
186187
[1, 1, 0, 0, 1],
187188
[0, 1, 1, 1, 0],
188189
]
189-
print(hamilton_cycle(graph))
190+
print(hamilton_cycle(graph))

0 commit comments

Comments
 (0)