← Google questions

Maximum XOR Value

Filed under Google

Given an array of integers and multiple queries consisting of pairs (x, m), find an array element that maximizes the bitwise XOR with x, under the constraint that the element is less than or equal to…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.