Available question text
Given num1 and num2, you may repeatedly subtract values of the form 2^i + num2 (i in [0,60]); find the minimum number of such operations to make num1 exactly 0, or return -1 if impossible. The core challenge is deciding if and how num1 can be expressed as a nonnegative integer combination of the special "coin" set {2^i + num2} and minimizing the count.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2749. Minimum Operations to Make the Integer Zero
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source