Skip to content

Commit 02f80b2

Browse files
authored
Update Search a 2D Matrix - Leetcode 74.py
1 parent 1faf4ab commit 02f80b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Search a 2D Matrix - Leetcode 74.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:
1818
r = m - 1
1919
else:
2020
l = m + 1
21+
2122
return False
23+
24+
# Time Complexity: O(log(m * n))
25+
# Space Complexity: O(1)

0 commit comments

Comments
 (0)