The min product of an array is defined as the minimum value in the array multiplied by the sum of all elements in the array.
Given an array of integers nums, return the maximum min product among all nonempty subarrays of nums. Since the answer can be large, return it modulo
Note: The maximum min product must be determined before applying the modulo operation. A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]
The min product of an array is defined as the minimum value in the array multiplied by the sum of all elements in the array.
Given an array of integers nums, return the maximum min product among all nonempty subarrays of nums. Since the answer can be large, return it modulo
Note: The maximum min product must be determined before applying the modulo operation. A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]