Maximize XOR with Second Input Bits Rearrangement
Filed under UBS
The question
Given two binary inputs, rearrange the bits of the second input such that the XOR of both inputs is maximized.
No write-up yet. Related questions below have one.
Related UBS questions
Collected from public candidate posts and coding forums. Updated Nov 2026.