We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0190f7 commit 5aa6700Copy full SHA for 5aa6700
word-search/jeldo.py
@@ -1,5 +1,5 @@
1
class Solution:
2
- # (O(m*n))
+ # O(m*n), m*n = board's width,heigh
3
def exist(self, board: List[List[str]], word: str) -> bool:
4
dirs = [(0, 1), (1, 0), (0, -1), (-1, 0)]
5
result = False
0 commit comments