You are given an integer array nums, an integer k, and an integer multiplier.
You need to perform nums. In each operation:
Find the minimum value in nums. If there are multiple occurrences of the minimum value, choose the one with the smallest index.
Replace the chosen value with its product with multiplier.
Return an array of integers representing the final state of nums after performing all
Constraints:
nums.length
nums[i]
k
multiplier
You are given an integer array nums, an integer k, and an integer multiplier.
You need to perform nums. In each operation:
Find the minimum value in nums. If there are multiple occurrences of the minimum value, choose the one with the smallest index.
Replace the chosen value with its product with multiplier.
Return an array of integers representing the final state of nums after performing all
Constraints:
nums.length
nums[i]
k
multiplier