Max XOR sequence
Filed under Ajio
The question
XOR all elements to get x, find the number in the array that gives max XOR with x, remove that number, and repeat until the array is empty.
No write-up yet. Related questions below have one.
Related Ajio questions
Collected from public candidate posts and coding forums. Updated Nov 2026.