Naukri Max XOR Skill Pair
Naukri Max XOR Skill Pair
MediumBit Manipulation0% accepted
Naukri encodes skill levels as integers. Find the maximum XOR of any two elements in an array.
Approach
Find maximum XOR of any two array elements using a Trie or bit masking.
Input
4
3 10 5 25
Output
28
More Bit Manipulation problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards