Bit Manipulation
2749. Minimum Operations to Make the Integer Zero
Given num1 and num2. One operation subtracts (2^i + num2) from num1, for any i in [0, 60]. Find the minimum operations to make num1 equal to 0; −1 if impossible. After t operations you must represent…
Loading…