2749. Minimum Operations to Make the Integer Zero
You are given two integers
num1andnum2.In one operation, you can choose integer
iin the range[0, 60]and subtract2i + num2fromnum1.Return the integer denoting the minimum number of operations needed to make
num1equal to0.If it is impossible to make
num1equal to0, return-1.
1 | class Solution { |