comefrom: <doocs>0240.Search a 2D Matrix II_1.py
code: def searchMatrix( matrix: List[List[int]], target: int) -> bool:
      m, n = len(matrix), len(matrix[0])
      i, j = m - 1, 0
      while i >= 0 and j < n:
          if matrix[i][j] == target:
              return True
          if matrix[i][j] > target:
              i -= 1
          else:
              j += 1
      return False
masked: def sample_funcname ( var_0 : List [ List [ int ] ] , var_1 : int ) -> bool :
      var_2 , var_3 = len ( var_0 ) , len ( var_0 [ 0 ] )
      var_4 , var_5 = var_2 - 1 , 0
      while var_4 >= 0 and var_5 < var_3 :
          if var_0 [ var_4 ] [ var_5 ] == var_1 :
              return True
          if var_0 [ var_4 ] [ var_5 ] > var_1 :
              var_4 -= 1
          else :
              var_5 += 1
      return False
  