摘要: 恢复内容开始 题目描述: 方法一:边统计边压缩: class Solution { public int numSubmat(int[][] mat) { int row = mat.length, col = mat[0].length, ans = 0; for (int i = 0; i < 阅读全文
posted @ 2020-07-17 15:39 oldby 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 第一次提交:通过76/78 留坑 class Solution: def isBipartite(self, graph: List[List[int]]) -> bool: dic = {} l = [] for i in range(len(graph)): if graph[i] 阅读全文
posted @ 2020-07-17 11:42 oldby 阅读(127) 评论(0) 推荐(0) 编辑