โ† HashedIn questions

Find two numbers given their sum and XOR

Filed under HashedIn

The question

Given two numbers X and Y representing the sum and bitwise XOR of two values A and B, determine the values of A and B such that X = A + B and Y = A ^ B.

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

Related HashedIn questions

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