3266. Final Array State After K Multiplication Operations II
Hard
50 Points
Array
Heap (Priority Queue)
Simulation
You are given an integer array nums, an integer k, and an integer multiplier.
You need to perform k operations on nums. In each operation:
After the k operations, apply modulo 109 + 7 to every value in nums.
Return an integer array denoting the final state of nums after performing all k operations and then applying the modulo.
3266. Final Array State After K Multiplication Operations II
Hard
50 Points
Array
Heap (Priority Queue)
Simulation
You are given an integer array nums, an integer k, and an integer multiplier.
You need to perform k operations on nums. In each operation:
After the k operations, apply modulo 109 + 7 to every value in nums.
Return an integer array denoting the final state of nums after performing all k operations and then applying the modulo.