comefrom: <doocs>0421.Maximum XOR of Two Numbers in an Array_1.py
code: def findMaximumXOR( nums: List[int]) -> int:
      max = 0
      mask = 0
      for i in range(30, -1, -1):
          current = 1 << i
          mask = mask ^ current
          s = set()
          for num in nums:
              s.add(num & mask)
          flag = max | current
          for prefix in s:
              if prefix ^ flag in s:
                  max = flag
                  break
      return max
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 = 0
      var_5 = 0
      for var_9 in range ( 30 , - 1 , - 1 ) :
          var_10 = 1 << var_9
          var_5 = var_5 ^ var_10
          var_12 = set ( )
          for var_13 in var_0 :
              var_12.add ( var_13 & var_5 )
          var_15 = var_4 | var_10
          for var_16 in var_12 :
              if var_16 ^ var_15 in var_12 :
                  var_4 = var_15
                  break
      return var_4
  