3264. Final Array State After K Multiplication Operations I
You are given an integer array
nums
, an integerk
, and an integermultiplier
.You need to perform
k
operations onnums
. In each operation:
- Find the minimum value
x
innums
. If there are multiple occurrences of the minimum value, select the one that appears first.- Replace the selected minimum value
x
withx * multiplier
.Return an integer array denoting the final state of
nums
after performing allk
operations.
1 | class Solution { |