Problem 2429 · Medium
Match num1 bits from the top while the set bit budget lasts, then fill the lowest free positions.
Open the interactive visualisation