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 pricingAnswer maximum XOR queries under a per-query limit, with a binary trie.
What this asks
Find the largest XOR of one value against the numbers at most a limit.
Decide the answer one bit at a time, keeping a bit only when an allowed number can reach the prefix it would give.
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