Skip to content

Commit 42c32e7

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

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
@@ -125,7 +125,7 @@ def util_color(
125125

126126
def color(graph: list[list[int]], max_colors: int) -> list[int]:
127127
"""
128-
Attempts to color the graph with at most max_colors colors such that no two adjacent
128+
Attempt to color the graph with at most max_colors colors such that no two adjacent
129129
vertices have the same color.
130130
If it is possible, returns the list of color assignments;
131131
otherwise, returns an empty list.

0 commit comments

Comments
 (0)