You are given an array nums consisting of positive integers.
In one operation, you can select any two adjacent elements in the array and replace them with a single element equal to their sum.
Return the minimum number of operations required to make nums a palindrome.
Constraints:
nums.length
nums[i]
You are given an array nums consisting of positive integers.
In one operation, you can select any two adjacent elements in the array and replace them with a single element equal to their sum.
Return the minimum number of operations required to make nums a palindrome.
Constraints:
nums.length
nums[i]