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 42c32e7Copy full SHA for 42c32e7
backtracking/coloring.py
@@ -125,7 +125,7 @@ def util_color(
125
126
def color(graph: list[list[int]], max_colors: int) -> list[int]:
127
"""
128
- Attempts to color the graph with at most max_colors colors such that no two adjacent
+ Attempt to color the graph with at most max_colors colors such that no two adjacent
129
vertices have the same color.
130
If it is possible, returns the list of color assignments;
131
otherwise, returns an empty list.
0 commit comments