摘要:        
问题: 给定n个节点,节点到节点所需要耗费的时间,从给定节点k开始, 最少花多长时间遍历完所有节点。 Example 1: Input: times = [[2,1,1],[2,3,1],[3,4,1]], n = 4, k = 2 Output: 2 Example 2: Input: times    阅读全文
posted @ 2021-03-04 17:40
habibah_chang
阅读(67)
评论(0)
推荐(0)
        
            
        
        
摘要:        
问题: 给定一个由 0 和 1 构成的二维数组。 求每个cell到最近0的距离。 Example 1: Input: [[0,0,0], [0,1,0], [0,0,0]] Output: [[0,0,0], [0,1,0], [0,0,0]] Example 2: Input: [[0,0,0],    阅读全文
posted @ 2021-03-04 15:02
habibah_chang
阅读(64)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号