Back to QuestionsPractice with This Question
Maximum XOR of Two Numbers in an Array
22.4K views•Asked at Google•
Medium
Question Explain
Given an array of integers, find the maximum result of $a \text{ XOR } b$, where $a$ and $b$ are elements in the array. Use a Trie (Prefix Tree) optimized for Bit Manipulation.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.