Skip to content

Commit 0d1e98e

Browse files
authored
Update 28. 单词搜索.md
1 parent eee78b6 commit 0d1e98e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

28. 单词搜索.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class Solution:
2929
flag = dfs(word_ind+1, cur_i, cur_j, parsed+[[cur_i, cur_j]])
3030
if flag:
3131
return True
32-
else:
33-
continue
3432
#调用递归
3533
for i in range(m):
3634
for j in range(n):
@@ -39,4 +37,4 @@ class Solution:
3937
if flag:
4038
return True
4139
return False
42-
```
40+
```

0 commit comments

Comments
 (0)