Maximum XOR of Two Numbers in an Array 解题报告(Trie树)
Givenanon-emptyarrayofnumbers,a0,a1,a2,…,an-1,where0≤ai&nums){TreeNode*root=build(nums);intres=0;for(inti=0;i&nums){TreeNode*root=newTreeNode(),*cur;for(inti=0;i=0;j--){intk=(nums[i]>>j)&1;if(cur->nex