We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da28b0 commit 38d0560Copy full SHA for 38d0560
backtracking/coloring.py
@@ -120,7 +120,7 @@ def util_color(
120
# Backtrack if no solution found with the current assignment
121
colored_vertices[index] = -1
122
123
- return False # Return False if no valid coloring is possible
+ return False # No valid coloring is possible
124
125
126
def color(graph: list[list[int]], max_colors: int) -> list[int]:
0 commit comments