原题链接:https://leetcode-cn.com/problems/maximum-xor-of-two-numbers-in-an-array/
func findMaximumXOR(nums []int) int { res := 0 for i := 1; i < len(nums); i++ { for j := 0; j < i; j++ { res = max(res, nums[i] ^ nums[j]) } } return res } func max(a int, b int) int { if a > b { return a } else { return b } }