Fork me on github
摘要: 思路染色问题,可以使用dfs,也可以使用bfs代码class Solution { boolean valid = true; int[][] graph; public boolean isBipartite(int[][] graph) { this.graph = graph; int n = graph.length; ... 阅读全文
posted @ 2020-07-16 19:22 zjy4fun 阅读(124) 评论(0) 推荐(0) 编辑