Skip to content

Commit 92449bf

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4de67b0 commit 92449bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: backtracking/coloring.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
2-
Graph Coloring (also called the "m coloring problem") is the problem of
3-
assigning at most 'm' colors to the vertices of a graph such that
2+
Graph Coloring (also called the "m coloring problem") is the problem of
3+
assigning at most 'm' colors to the vertices of a graph such that
44
no two adjacent vertices share the same color.
55
66
Wikipedia: https://en.wikipedia.org/wiki/Graph_coloring
@@ -119,7 +119,7 @@ def util_color(
119119

120120
def color(graph: list[list[int]], max_colors: int) -> list[int]:
121121
"""
122-
Attempts to color the graph with at most max_colors colors such that no two adjacent
122+
Attempts to color the graph with at most max_colors colors such that no two adjacent
123123
vertices have the same color. If it is possible, returns the list of color assignments;
124124
otherwise, returns an empty list.
125125

0 commit comments

Comments
 (0)