Sponsored
Use these hints if you're stuck. Try solving on your own first.
Decompress the given array by repeating nums[2*i+1] a number of times equal to nums[2*i].
Solve with full IDE support and test cases