On inverting signs of array we get a new array and 1st step then is to apply Kadane’s algorithm to get the maximum subarray.But what if this maximum subarray is a part of circulant array i.e some numbers of subarray are ending of array while some are beginning of array.You didn’t consider that case.
Maximum circulant subarray sum
Hey Tushar, that case will be considered automatically when we eliminate the maximum continuous negative that implies maximum continuous positive in the inverted arrays.