Skip to content

Commit 08395d1

Browse files
authored
Update 1036-escape-a-large-maze.js
1 parent 8f966c3 commit 08395d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

1036-escape-a-large-maze.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ const isEscapePossible = function(blocked, source, target) {
5353
if (blocked.length < 2) {
5454
return true
5555
}
56-
if (blocked[0][0] == 100025) {
57-
return false
58-
}
56+
// if (blocked[0][0] == 100025) {
57+
// return false
58+
// }
5959
const blockSet = new Set(
6060
blocked.map(el => {
6161
return el[0] + "," + el[1]
@@ -74,7 +74,7 @@ const isEscapePossible = function(blocked, source, target) {
7474
count++
7575
;[curR, curC] = queue.shift()
7676

77-
if (count > 2000) {
77+
if (count > 20000) {
7878
return true
7979
}
8080
for (let dir of DIRS) {

0 commit comments

Comments
 (0)