3489. Zero Array Transformation IV
You are given an integer array nums of length n and a 2D array queries, where queries[i] = [li, ri, vali]. Each queries[i] represents the following action on nums: - Select a subset of indices in the range [li, ri] from nums. - Decrement the value at each selected index by exactly vali. A Zero Array is an array with all its elements equal to 0. Return the minimum possible non-negative value o
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start