#3266
Final Array State After K Multiplication Operations II
grandmaster · 2310 · lc hard +32 · 13.1% accepted · 179 likes · top 0%
Description
You are given integer array nums, integer k, and integer multiplier. Perform k operations: each time replace the earliest minimum value x with x * multiplier. Then apply modulo 109 + 7 to every element.
Return the final array.
Code
1
2
3