Skip to content

Commit d419742

Browse files
2 parents 5699f55 + 627a226 commit d419742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: graphs/check_bipartite_graph_all.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
>>> is_bipartite(defaultdict(list, {0: [1, 2], 1: [0, 2], 2: [0, 1]}))
1818
True"""
1919

20-
def check_bipartite(graph:any) -> bool:
20+
def check_bipartite(graph:defaultdict[int, list[int]]) -> bool:
2121
queue = Queue()
2222
visited = [False] * len(graph)
2323
color = [-1] * len(graph)

0 commit comments

Comments
 (0)