LeetCode: 1926-Nearest Exit from Entrance in Maze 解題紀錄
Last Updated on 2022-11-21 by Clay
題目
You are given an m x n
matrix maze
(0-indexed) with empty cells (represented as '.'
) and walls (represented as '+'
). You are also given the entrance
of the maze, where entrance = [entrancerow, entrancecol]
denotes the row and column of the cell you are initially standing at.