You are given an integer array nums. The value of an array is defined as the sum of nums[i] nums[i + 1]i nums.length
You may select at most one contiguous subarray of nums and reverse it.
Return the maximum possible value of the array after performing at most one such reversal.
Constraints:
nums.length
nums[i]
The answer is guaranteed to fit in a
You are given an integer array nums. The value of an array is defined as the sum of nums[i] nums[i + 1]i nums.length
You may select at most one contiguous subarray of nums and reverse it.
Return the maximum possible value of the array after performing at most one such reversal.
Constraints:
nums.length
nums[i]
The answer is guaranteed to fit in a