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