โ† Thoughtworks questions

Maximize XOR with k

Filed under Thoughtworks

The question

Given an array, find k (1 <= k <= 2^32) such that the XOR sum of the array elements XORed with k is maximized.

No write-up yet. Related questions below have one.

Related Thoughtworks questions

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