Available question text
Given an array of powers of two where you can replace any 2^k with two 2^(k-1) at cost 1 (the halves are appended to the array), find the minimum number of such splits so that some subsequence sums to target, or return -1 if impossible. The core challenge is greedily balancing counts of each power-of-two to match the target's binary representation by splitting larger powers as needed.
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 2835. Minimum Operations to Form Subsequence With Target Sum
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source