Available question text
Given nums and limits op1/op2, you may apply at most op1 operations that replace nums[i] with ceil(nums[i]/2) and at most op2 operations that subtract k from nums[i] (only allowed if nums[i] >= k), with each operation usable at most once per index and both operations allowed on the same index. Find the assignment of these operations that yields the minimum possible sum of the array.
Related questions
Continue with questions that share topics or the same question type.
- Determine the Minimum Sum of a k-avoiding Array
Coding
- Find the Minimum Possible Sum of a Beautiful Array
Coding
- Minimum Operations to Halve Array Sum
Coding · Array · Greedy · Heap (Priority Queue)
- Minimum Operations to Make Array Sum Divisible by K
Coding
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 3366. Minimum Array Sum
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source