Skip to content

Commit 80cc148

Browse files
committed
Fix: Build PR
1 parent 81fcb2f commit 80cc148

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

graphs/traveling_salesman_problem.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,12 @@ def tsp_greedy(graph: list[list[int]]) -> int:
9696
Example:
9797
>>> tsp_greedy([[0, 29, 20], [29, 0, 15], [20, 15, 0]])
9898
64
99-
>>> tsp_greedy([[0, 10, 15, 20], [10, 0, 35, 25],
100-
[15, 35, 0, 30], [20, 25, 30, 0]])
99+
>>> tsp_greedy([
100+
[0, 10, 15, 20],
101+
[10, 0, 35, 25],
102+
[15, 35, 0, 30],
103+
[20, 25, 30, 0]
104+
])
101105
80
102106
"""
103107
n = len(graph)

0 commit comments

Comments
 (0)