<code class="language-Python">class Solution(object): def findMaximumXOR(self, nums): """ :type nums: List[int] :rtype: int """ head=(None,None) for num in nums: node=head for bit in range(32)[::-1]: chd=int(bool(num&(1<<bit))) if node[chd]="=None:" newnode="(None,None)" node="NewNode" else: maxxor="0" for num in nums: curxor="0" bit range(32)[::-1]: chd="int(bool(num&(1<<bit)))" node[1^chd]: curxor|="1<<bit" return < code></bit)))></code>
时段 | 个数 |
---|---|
{{f.startingTime}}点 - {{f.endTime}}点 | {{f.fileCount}} |