Find the maximum XOR of any two numbers in the array.
With nums = [3,10,5,25,2,8]:
- 5 XOR 25 = 00101 XOR 11001 = 11100 = 28.
- No pair produces a larger XOR.
- Answer: 28.
With nums = [14,70,53,83,49,91,36,80,92,51,66,70]:
- Maximum XOR is 127.
Constraints: 1≤ nums.length ≤2×105. 0≤ nums[i] ≤231−1.