You are given an integer array nums. Initially, you have an array arr of the same length where every element is set to
In one operation, you can apply either of the following function calls:
Increment by i and increase the value of arr[i] by
Multiply by arr by
Return the minimum number of function calls required to make arr equal to nums.
Constraints:
nums.length
nums[i]
You are given an integer array nums. Initially, you have an array arr of the same length where every element is set to
In one operation, you can apply either of the following function calls:
Increment by i and increase the value of arr[i] by
Multiply by arr by
Return the minimum number of function calls required to make arr equal to nums.
Constraints:
nums.length
nums[i]