240. 搜索二维矩阵 II
python">class Solution:def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:r = len(matrix)c = len(matrix[0])for i in range(r):for j in range(c):if matrix[i][j]==target:return Trueelif matrix[i][j]>target:breakreturn False