python解法:leetcode 542 0-1矩陣

class Solution(object): def updateMatrix(self, matrix): """ :type matrix: List[List[int]] :rtype: List[List[int]] """ # BFS寬度優先搜索 # 先找到全部的0點
相關文章
相關標籤/搜索