# 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
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up