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_3 = [ 0 ] * 9
      var_4 = [ 0 ] * 9
      var_5 = [ 0 ] * 9
      for var_7 in range ( 9 ) :
          for var_8 in range ( 9 ) :
              var_9 = var_0 [ var_7 ] [ var_8 ]
              if var_9 != '.' :
                  var_14 = 1 << ( ord ( var_9 ) - ord ( '0' ) )
                  if ( var_4 [ var_7 ] & var_14 ) > 0 or ( var_3 [ var_8 ] & var_14 ) > 0 or ( var_5 [ ( var_7 / 3 ) * 3 + var_8 / 3 ] & var_14 ) > 0 :
                      return False
                  var_4 [ var_7 ] |= var_14
                  var_3 [ var_8 ] |= var_14
                  var_5 [ ( var_7 / 3 ) * 3 + var_8 / 3 ] |= var_14
      return True
  