comefrom: <garvit244>240_1.py
code: def searchMatrix( matrix, target):
      if not matrix:
          return False
      
      left, right = 0, len(matrix[0])-1
      while left < len(matrix) and right >= 0:
          if matrix[left][right] == target:
              return True
          elif matrix[left][right] < target:
              left += 1
          else:
              right -= 1
      return False
masked: def sample_funcname ( var_0 , var_1 ) :
      if not var_0 :
          return False
      var_4 , var_7 = 0 , len ( var_0 [ 0 ] ) - 1
      while var_4 < len ( var_0 ) and var_7 >= 0 :
          if var_0 [ var_4 ] [ var_7 ] == var_1 :
              return True
          elif var_0 [ var_4 ] [ var_7 ] < var_1 :
              var_4 += 1
          else :
              var_7 -= 1
      return False
  