Problem 2429 · Medium

Minimize XOR

Match num1 bits from the top while the set bit budget lasts, then fill the lowest free positions.

Open the interactive visualisation