Given an integer array nums representing a circular array, return the maximum possible sum of a non empty subarray of nums.
A subarray is a contiguous sequence of elements. Because nums is circular, a subarray may wrap from the end of the array back to the beginning, but each element of nums can be included at most once in the chosen subarray.
Constraints:
n == nums.length
n
nums[i]
Given an integer array nums representing a circular array, return the maximum possible sum of a non empty subarray of nums.
A subarray is a contiguous sequence of elements. Because nums is circular, a subarray may wrap from the end of the array back to the beginning, but each element of nums can be included at most once in the chosen subarray.
Constraints:
n == nums.length
n
nums[i]