Back to Questions

Maximum XOR of Two Numbers in an Array

22.4K viewsAsked 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.

Practice with This Question
Maximum XOR of Two Numbers in an Array - Interview Question