<garvit244>74_1.py
def searchMatrix( matrix, target):
    if not matrix:
        return 0
    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
def sample_funcname ( var_0 , var_1 ) :
    if not var_0 :
        return 0
    var_3 , var_6 = 0 , len ( var_0 [ 0 ] ) - 1
    while var_3 < len ( var_0 ) and var_6 >= 0 :
        if var_0 [ var_3 ] [ var_6 ] == var_1 :
            return True
        elif var_0 [ var_3 ] [ var_6 ] < var_1 :
            var_3 += 1
        else :
            var_6 -= 1
    return False
