comefrom: <doocs>2133.Check if Every Row and Column Contains All Numbers_1.py
code: 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
masked: def sample_funcname ( var_0 : List [ List [ int ] ] ) -> bool :
      var_1 = len ( var_0 )
      for var_2 in range ( var_1 ) :
          var_3 = [ False ] * var_1
          for var_4 in range ( var_1 ) :
              var_5 = var_0 [ var_2 ] [ var_4 ] - 1
              if var_3 [ var_5 ] :
                  return False
              var_3 [ var_5 ] = True
      for var_4 in range ( var_1 ) :
          var_3 = [ False ] * var_1
          for var_2 in range ( var_1 ) :
              var_5 = var_0 [ var_2 ] [ var_4 ] - 1
              if var_3 [ var_5 ] :
                  return False
              var_3 [ var_5 ] = True
      return True
  