Skip to content

Commit 073d896

Browse files
authored
Update find-a-safe-walk-through-a-grid.cpp
1 parent b8ababc commit 073d896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/find-a-safe-walk-through-a-grid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Time: O(m * n)
22
// Space: O(m * n)
33

4-
// 0-1 bfs solution
4+
// 0-1 bfs, deque
55
class Solution {
66
public:
77
bool findSafeWalk(vector<vector<int>>& grid, int health) {

0 commit comments

Comments
 (0)