Given a circular integer array nums (the next element of nums[n-1] is nums[0]), find the maximum possible sum of a non-empty subarray of nums.
- An array of integers
nums.
- An integer representing the maximum circular subarray sum.
- 1 <= nums.length <= 3 * 10^4
- -30,000 <= nums[i] <= 30,000
Input: nums = [5, -3, 5]
Output: 10
Explanation: [5, 5] (circularly) has the maximum sum = 10.