Question bank › Bit Manipulation
Dsa Bit Manipulation Medium

Maximum XOR of Two Numbers in Array

You are given an array of non-negative integers. Your task is to find the maximum XOR result of any two numbers from the array. Return this maximum XOR value. For example: Input: [3, 10, 5, 25, 2, 8] Output: 28 Explanation: 5 XOR 25 = 28.

Key concepts

bit manipulationxor

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.