1
# Runtime: 121 ms (Top 76.1%) | Memory: 19.55 MB (Top 13.9%)
2

3

4
class Solution(object):
5
def searchMatrix(self, matrix, target):
6
"""
7
:type matrix: List[List[int]]
8
:type target: int
9
:rtype: bool
10
"""
11
found = False
12
for X in matrix:
13
for M in X:
14
if M == target:
15
found = True
16
return found

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0