Available question text
Find the smallest prefix length k such that for every index i, nums[i] can be formed as the sum of some subset of the values val_j from the first k queries whose ranges include i. In other words, it's a per-index subset-sum feasibility problem over the multiset of query values that cover each position, and you must return the minimum k (or -1) for which all positions are attainable.
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 3489. Zero Array Transformation IV
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source