You are given a nums containing n non negative integers.
In one operation, you may:
Select an integer i such that i nums[i]
Decrease nums[i] by
Increase nums[i - 1] by
Return the minimum possible value of the maximum integer in nums after applying any number of operations.
Constraints:
n nums.length
n
nums[i]
You are given a nums containing n non negative integers.
In one operation, you may:
Select an integer i such that i nums[i]
Decrease nums[i] by
Increase nums[i - 1] by
Return the minimum possible value of the maximum integer in nums after applying any number of operations.
Constraints:
n nums.length
n
nums[i]