0

Maximum XOR of Two Numbers in an Array

Medium
TriesSDE 25040 min targetfrequency 3/5LeetCode 421
Already solved this on LeetCode?
Mark it and you get similar problems you have not done instead of a repeat.
Quick refresher
A one-minute recap of how to solve it. Folded so it does not spoil a first attempt.
Hints
0 of 3 revealed
Hint 2 locked
Hint 3 locked
Approach
Try it first. Revealing the approach does not cost XP, but solving it unaided is worth more.
Scratchpad

Runs in a worker with a 2.5 second cap, so an infinite loop cannot lock the page.

Your notes
Solve it on

Direct links where the exact problem id is known, search links otherwise. The same question often appears under a different title on each platform.

Your model
Trie18%
Bit Tricks18%
Tries18%

Knowledge-tracing estimate of the chance you have each skill. Solving updates it up, giving up updates it down.

Same idea, different wrapper
target 40m