You are given an integer array nums. You must perform an operation exactly once by choosing an index i and replacing nums[i] with nums[i] * nums[i].
Return the maximum possible sum of a contiguous non empty subarray after applying this operation.
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]
You are given an integer array nums. You must perform an operation exactly once by choosing an index i and replacing nums[i] with nums[i] * nums[i].
Return the maximum possible sum of a contiguous non empty subarray after applying this operation.
Note: A subarray is a contiguous sequence of elements within an array.
Constraints:
nums.length
nums[i]