HTMLify

LeetCode - Search a 2D Matrix - Python
Views: 283 | Author: abh
class Solution:
    def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:
        for row in matrix:
            if target in row:
                return True
        return False

Comments