Available question text
Given initial counts nums and a time-ordered list changeIndices where an index i can only be marked at seconds when changeIndices[s] == i (marking is checked after at most one optional decrement per second), find the earliest second by which every index can be reduced to zero and then marked. This is a scheduling/feasibility problem: decide whether the available decrements up to time t can be allocated so each index reaches zero before one of its appearances (commonly solved via binary search on time with a greedy check).
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 3048. Earliest Second to Mark Indices I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source