Skip to content

Commit 38d0560

Browse files
Hardvancclauss
andauthored
Update backtracking/coloring.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 9da28b0 commit 38d0560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtracking/coloring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def util_color(
120120
# Backtrack if no solution found with the current assignment
121121
colored_vertices[index] = -1
122122

123-
return False # Return False if no valid coloring is possible
123+
return False # No valid coloring is possible
124124

125125

126126
def color(graph: list[list[int]], max_colors: int) -> list[int]:

0 commit comments

Comments
 (0)