# 286-Walls and Gates ###### tags: `Medium` * Key: 1. 使用一個pair vector或二維vector代表位移用來traverse neighbors(上下左右點),常用在BFS和DFS遍尋過程 2. BFS 3. DFS * Reference: https://hackmd.io/@lilybon/leetcode-286 https://github.com/grandyang/leetcode/issues/286