Given an array of positive integers nums, find the maximum possible sum of a contiguous subarray that forms a palindrome.
An array is considered a palindrome if it reads the same forwards and backwards.
Return the maximum sum among all palindromic contiguous subarrays.
Constraints:
nums.length
nums[i]
Given an array of positive integers nums, find the maximum possible sum of a contiguous subarray that forms a palindrome.
An array is considered a palindrome if it reads the same forwards and backwards.
Return the maximum sum among all palindromic contiguous subarrays.
Constraints:
nums.length
nums[i]