comefrom: <doocs>1829.Maximum XOR for Each Query_1.py
code: def getMaximumXor( nums: List[int], maximumBit: int) -> List[int]:
      n = len(nums)
      s = [0] * (n + 1)
      for i, x in enumerate(nums):
          s[i + 1] = s[i] ^ x
      ans = []
      for x in s[:0:-1]:
          t = 0
          for i in range(maximumBit):
              if ((x >> i) & 1) == 0:
                  t |= 1 << i
          ans.append(t)
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : int ) -> List [ int ] :
      var_2 = len ( var_0 )
      var_3 = [ 0 ] * ( var_2 + 1 )
      for var_4 , var_5 in enumerate ( var_0 ) :
          var_3 [ var_4 + 1 ] = var_3 [ var_4 ] ^ var_5
      var_6 = [ ]
      for var_5 in var_3 [ : 0 : - 1 ] :
          var_7 = 0
          for var_4 in range ( var_1 ) :
              if ( ( var_5 >> var_4 ) & 1 ) == 0 :
                  var_7 |= 1 << var_4
          var_6.append ( var_7 )
      return var_6
  