What is approach to solve max xor of two elements in array
This can be solved by mapping each elements binary bit representation into a trie. After that for each element find the max xor value. Refer this link for detailed explanation.
What is approach to solve max xor of two elements in array
This can be solved by mapping each elements binary bit representation into a trie. After that for each element find the max xor value. Refer this link for detailed explanation.