comefrom: <qiyuangong>036_Valid Sudoku_1.py
code: def isValidSudoku( board):
      vset = [0] * 9
      hset = [0] * 9
      bset = [0] * 9
      for i in range(9):
          for j in range(9):
              curr = board[i][j]
              if curr != '.':
                  index = 1 << (ord(curr) - ord('0'))
                  if (hset[i] & index) > 0 or\
                                  (vset[j] & index) > 0 or\
                                  (bset[(i / 3) * 3 + j / 3] & index) > 0:
                      return False
                  hset[i] |= index
                  vset[j] |= index
                  bset[(i / 3) * 3 + j / 3] |= index
      return True
masked: def sample_funcname ( var_0 ) :
      var_1 = [ 0 ] * 9
      var_2 = [ 0 ] * 9
      var_3 = [ 0 ] * 9
      for var_4 in range ( 9 ) :
          for var_5 in range ( 9 ) :
              var_6 = var_0 [ var_4 ] [ var_5 ]
              if var_6 != '.' :
                  var_7 = 1 << ( ord ( var_6 ) - ord ( '0' ) )
                  if ( var_2 [ var_4 ] & var_7 ) > 0 or ( var_1 [ var_5 ] & var_7 ) > 0 or ( var_3 [ ( var_4 / 3 ) * 3 + var_5 / 3 ] & var_7 ) > 0 :
                      return False
                  var_2 [ var_4 ] |= var_7
                  var_1 [ var_5 ] |= var_7
                  var_3 [ ( var_4 / 3 ) * 3 + var_5 / 3 ] |= var_7
      return True
  