LeetCode_54二、01矩陣

給定一個由 0 和 1 組成的矩陣,找出每一個元素到最近的 0 的距離。java 兩個相鄰元素間的距離爲 1 。 node class Solution { class Node{ int x; int y; Node(){} Node(int x, int y){ this.x = x;
相關文章
相關標籤/搜索