Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Maximum XOR of Two Numbers in an Array
Bookmark
Input
Standard (ans=28)
Large (ans=127)
Small (ans=14)
Custom
nums
=
[3, 10, 5, 25, 2, 8]
Phase
--
Current
--
XOR
--
Max XOR
0
3
00011
[0]
10
01010
[1]
5
00101
[2]
25
11001
[3]
2
00010
[4]
8
01000
[5]
*
algo
master
.
io
Step:
Start: Build binary trie using 5-bit representation
0 / 130
Input
Standard (ans=28)
Large (ans=127)
Small (ans=14)
Custom
nums
=
[3, 10, 5, 25, 2, 8]
0 / 130
Phase
--
Current
--
XOR
--
Max XOR
0
3
00011
[0]
10
01010
[1]
5
00101
[2]
25
11001
[3]
2
00010
[4]
8
01000
[5]
*
algo
master
.
io
Step:
Start: Build binary trie using 5-bit representation