Harukaze

 

2021年9月16日

【力扣】并查集模板

摘要: 1 class Solution: 2 def isBipartite(self, graph: List[List[int]]) -> bool: 3 n=len(graph) 4 boss=[i for i in range(n)] 5 6 def find(x): 7 nonlocal bos 阅读全文

posted @ 2021-09-16 10:31 Harukaze 阅读(56) 评论(0) 推荐(0)

导航