[LeetCode]529. Minesweeper

https://leetcode.com/problems/minesweeper/?tab=Description java 計算掃雷遊戲點擊當前位置後顯示結果code BFS,不能一直深搜,由於當前位置若是要顯示數字(即周圍有幾個雷),那麼不能對它的四周進行深搜。遞歸 所以先count當前四周雷數,若是沒有雷才能繼續遞歸搜索遊戲 public class Solution { int[
相關文章
相關標籤/搜索