2022-06-04
1091. Shortest Path in Binary Matrix
Description
Input: grid = [[0,1],[1,0]]
Output: 2Input: grid = [[0,0,0],[1,1,0],[1,1,0]]
Output: 4Solution
Approach #0
130. Surrounded Regions
Description
Solution
Approach #0: BFS
Approach #1: DFS
797. All Paths From Source to Target
Description
Solution
Approach #0: DFS
Approach #1: BFS
Last updated




