Problem 3849 · Medium

Maximum Bitwise XOR After Rearrangement

Each later bit is decided the same way.

Open the interactive visualisation