<doocs>2133.Check if Every Row and Column Contains All Numbers_1.py
def checkValid( matrix: List[List[int]]) -> bool:
    n = len(matrix)
    for i in range(n):
        seen = [False] * n
        for j in range(n):
            v = matrix[i][j] - 1
            if seen[v]:
                return False
            seen[v] = True
    for j in range(n):
        seen = [False] * n
        for i in range(n):
            v = matrix[i][j] - 1
            if seen[v]:
                return False
            seen[v] = True
    return True
def sample_funcname ( var_0 : List [ List [ int ] ] ) -> bool :
    var_5 = len ( var_0 )
    for var_7 in range ( var_5 ) :
        var_9 = [ False ] * var_5
        for var_10 in range ( var_5 ) :
            var_12 = var_0 [ var_7 ] [ var_10 ] - 1
            if var_9 [ var_12 ] :
                return False
            var_9 [ var_12 ] = True
    for var_10 in range ( var_5 ) :
        var_9 = [ False ] * var_5
        for var_7 in range ( var_5 ) :
            var_12 = var_0 [ var_7 ] [ var_10 ] - 1
            if var_9 [ var_12 ] :
                return False
            var_9 [ var_12 ] = True
    return True
