Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to find a pattern in how nums changes.
Let m be the original length of nums. If time_i / m (integer division) is even, then nums is at its original size or decreasing in size. If it is odd, then it is empty, or increasing in size.
time_i % m can be used to find how many elements are in nums at minute time_i.