This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingConcept theory, tags and interview notes for Max XOR pair (bitwise trie).
What this asks
Find the maximum XOR of any two numbers in an array.
Insert every number into a bitwise trie, then query each one preferring the opposite bit from the top level down.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing